New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]: Got empty response when using KnowledgeGraphRAGRetriever with Neo4jGraphStore #13397
Comments
To address the issue where the
By following these steps and ensuring each component is correctly configured, you should be able to successfully retrieve knowledge sequences from your Neo4J graph store. For more detailed guidance, refer to the source code of the
|
How do I check entity extraction process? @dosu |
To check the entity extraction process in your setup, you'll want to focus on several key areas to ensure that the
By systematically going through these steps, you should be able to identify and resolve the issue causing the empty response from your
|
Question Validation
Question
Hi, at the moment I want to use KnowledgeGraphRAGRetriever with Knowledge graph store Neo4J.
I followed the tutorial https://docs.llamaindex.ai/en/stable/examples/query_engine/knowledge_graph_rag_query_engine/ by used Neo4JGraphStore instead of Nebular. However, My results is
llama_index.core.indices.knowledge_graph.retrievers:> No knowledge sequence extracted from entities.
with empty response.I try to configure Neo4JGraphStore by changed node_label but it still return same as above response.
Do you have any suggestion to let me succeed this?
Here is my code
`from llama_index.llms.openai import OpenAI
from llama_index.embeddings.openai import OpenAIEmbedding
from llama_index.core import ServiceContext, StorageContext
from llama_index.graph_stores.neo4j import Neo4jGraphStore
Set up LLM and embeddings
llm = OpenAI(model_name="gpt-4-turbo")
embed_model = OpenAIEmbedding(model="text-embedding-ada-002")
Settings.llm = llm
Settings.embed_model=embed_model
graph_store = Neo4jGraphStore(
username="xxxx",
password="xxxx",
url="xxxx",
database="xxxx"
)
storage_context = StorageContext.from_defaults(graph_store=graph_store)
Create the KnowledgeGraphRAGRetriever
rag_retriever = KnowledgeGraphRAGRetriever(
storage_context=storage_context,
llm=llm,
verbose=True,
)
Query the retriever
result = rag_retriever.retrieve("Summary total sales order")
print(result)`
Here is the result
The text was updated successfully, but these errors were encountered: