tomasonjo / blogs

Jupyter notebooks that support my graph data science blog posts at https://bratanic-tomaz.medium.com/
1.26k stars 332 forks source link

Issue with ms_graphrag_retriever.ipynb - local search #39

Open khang-nguyen2907 opened 1 week ago

khang-nguyen2907 commented 1 week ago

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

tomasonjo commented 6 days ago

Did you import the data?