Closed sanzhar-rakhimkul closed 3 months ago
Hi! Are you sure you pass the right text to insert
?
It seems not a LLM issue
Or what LLM you are using? Maybe the LLM is unable to follow the instruction and extract any entities, so the list is empty and trigger this error.
I just checked the text, it is not empty. I previously tried the text with gpt-4o it worked perfectly.
I just tried:
Emmm, that's weird. llama3.1 70B shouldn't be that bad. I will add a new commit that will warning you when there is no new entities.
I don't know what was the problem. I just deleted WORKING_DIR and started again. Now it works. Thanks for a help
Hello. When I try to use Ollama as LLM provider, I have following error. I used your example for deepseek.
For some reason my embeddings_list = [] is empty and I get the error. Could you please help me │ /home/robot/Code/repo/nano-graphrag/nano_graphrag/_storage.py:94 in upsert │ │ │ │ 91 │ │ embeddings_list = await asyncio.gather( │ │ 92 │ │ │ *[self.embedding_func(batch) for batch in batches] │ │ 93 │ │ ) │ │ ❱ 94 │ │ embeddings = np.concatenate(embeddings_list) │ │ 95 │ │ for i, d in enumerate(list_data): │ │ 96 │ │ │ d["vector"] = embeddings[i] │ │ 97 │ │ results = self._client.upsert(datas=list_data) │ │
ValueError: need at least one array to concatenate
Full logs are here: output.log