Replies: 6 comments
-
@xinkeyb I think I've hit this before? Trying to remember how I solved it. Two things to try. In my testing of neo4j, it seemed really slow to actually populate the db? Maybe double check that the graph has nodes in it in their GUI before querying Also, this might be related to pydantic? Make sure you |
Beta Was this translation helpful? Give feedback.
-
1. Yes, I have confirmed that nodes have been generated in Neo4j.2. I have ensured that pydantic=1.10.12.3. The original question was:response = query_engine.query("Tell me more about Tom Hanks"). But I found out that there is no ”Tom Hanks“ entity in neo4j. So I changed it to response = query_engine.query("Tell me more about Philz"), I ensure that this entity “Philz” exists in neo4j. This is the response and error:
|
Beta Was this translation helpful? Give feedback.
-
I suspect there may be a version issue with the Neo4j library. My version is 5.10.0. May I know your version of Neo4j? |
Beta Was this translation helpful? Give feedback.
-
If possible, could you please help me check if the versions of these libraries are different from yours, or could you please send out the versions of your libraries for me to compareThe versions of other libraries in my environment are as follows:
|
Beta Was this translation helpful? Give feedback.
-
Similar error in another bug here around "tree_summarize"...maybe same issue? |
Beta Was this translation helpful? Give feedback.
-
🤖 Hello, The Here are a few suggestions to resolve this issue:
You can refer to these similar issues in the LlamaIndex repository for more context:
Also, you can refer to the LlamaIndex codebase for more details on how these methods work:
I hope this helps! Let me know if you have any other questions. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
Question Validation
Question
If you can help me solve this bug, then I would greatly appreciate it.
1. I referred to this example to implement llama_ Index combines knowledge graph and uses local LLM:https://github.com/jerryjliu/llama_index/blob/main/docs/examples/index_structs/knowledge_graph/Neo4jKGIndexDemo.ipynb
2. But the following error occurred:
Traceback (most recent call last):
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/site-packages/llama_index/response_synthesizers/tree_summarize.py", line 149, in get_response
return self.get_response(
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/site-packages/llama_index/response_synthesizers/tree_summarize.py", line 149, in get_response
return self.get_response(
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/site-packages/llama_index/response_synthesizers/tree_summarize.py", line 149, in get_response
return self.get_response(
[Previous line repeated 977 more times]
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/site-packages/llama_index/response_synthesizers/tree_summarize.py", line 100, in get_response
text_qa_template = self._text_qa_template.partial_format(query_str=query_str)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/site-packages/llama_index/prompts/base.py", line 112, in partial_format
raise e
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/site-packages/llama_index/prompts/base.py", line 107, in partial_format
copy_obj = deepcopy(self)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 270, in _reconstruct
state = deepcopy(state, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 230, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 270, in _reconstruct
state = deepcopy(state, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 230, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 230, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 270, in _reconstruct
state = deepcopy(state, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 230, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 230, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/copy.py", line 138, in deepcopy
y = memo.get(d, _nil)
RecursionError: maximum recursion depth exceeded in comparison
Exception ignored in: <function Driver.del at 0x7fe150bd0940>
Traceback (most recent call last):
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/site-packages/neo4j/_sync/driver.py", line 485, in del
File "/home/zhaoxinke/miniconda3/envs/kgllm/lib/python3.8/site-packages/neo4j/_meta.py", line 226, in unclosed_resource_warn
TypeError: 'NoneType' object is not callable
3. This is my whole code:
Beta Was this translation helpful? Give feedback.
All reactions