Skip to content
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

Issue with ms_graphrag_retriever.ipynb - local search #39

Open
khang-nguyen2907 opened this issue Sep 5, 2024 · 4 comments
Open

Issue with ms_graphrag_retriever.ipynb - local search #39

khang-nguyen2907 opened this issue Sep 5, 2024 · 4 comments

Comments

@khang-nguyen2907
Copy link

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
Copy link
Owner

Did you import the data?

@magni5
Copy link

magni5 commented Oct 11, 2024

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

@SpikeYangRc
Copy link

@khang-nguyen2907 Did you solve this problem?

@Sandy4321
Copy link

lets fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants