Issue with ms_graphrag_retriever.ipynb - local search
Hi, thank you for your amazing implementation. While running the notebook, I get into a trouble that after I run the cell:
docs = lc_vector.similarity_search(
"What do you know about Cratchitt family?",
k=topEntities,
params={
"topChunks": topChunks,
"topCommunities": topCommunities,
"topOutsideRels": topOutsideRels,
"topInsideRels": topInsideRels,
},
)
print(docs)
It results in
[Document(page_content='Entities:\nReports:\nChunks:\nRelationships:\n')]
I did not change anything in the notebook, the previous codes are fine but I do not know what happen to the query. I am new to Cypher and Neo4j. Could anyone help me to solve it? Thank you in advanced
Did you import the data?
I encountered the same issue. I suggest you to debug the execution in the Neo4j console, by executing those two commands.
The first is done by adding the following cypher instruction at the beginning of the lc_retrieval_query string.
MATCH (node)
WITH collect(node) as nodes
// the rest is the same
The second is by querying the index in this way.
CALL db.index.vector.queryNodes($index, $k, $embedding)
YIELD node, score
WITH collect(node) as nodes
// the rest is the same
@khang-nguyen2907 Did you solve this problem?
lets fix it?