, line 96, in embed chunk_embeddings = np.average(chunk_embeddings, axis=0, weights=chunk_lens) File "f:\GraphRAG-Ollama-UI\Miniconda3\lib\site-packages\numpy\lib\function_base.py", line 550, in average raise ZeroDivisionError( ZeroDivisionError: Weights sum to zero, can't be normalized ...
Encountered this error when testing a file: http://www.datafilehost.com/d/d0cb08e1 Running in Sushi 0.4.3..
I have a csr matrix and my idea is to multiply each row by weights that would be related to order of greatest values in the matrix row. if the row has 5 nonzero values then multiply the biggest value by 5 (normalized), second biggest by 4 etc. in fact it is inspirat...