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 observed when using get_subsequent_chunk_id function in graphreader langgraph notebook #47

Open
jun-li-2020 opened this issue Nov 27, 2024 · 2 comments

Comments

@jun-li-2020
Copy link

When running through the graphreader_langgraph notebook, I observed around one out of five chances so far the get_subsequent_chunk_id function below will have this error ClientError: {code: Neo.ClientError.Statement.ParameterMissing} {message: Expected parameter(s): id}. In this example, I have six available actions. Chosen action: {'function_name': 'read_chunk', 'arguments': [['9999fbec5c990d4898b35522343e4eba', 'ddbf9deb5119c6fb9678998578f952cd', '4b3aa3854130edc1178f56a5fc746b32', 'acdd065f5684436bfa685ac0aeadb014', 'e6170aaa2c9d96929b03ad0e2c22902a', '9740f3bff8d39959e0a479c3f61ee072']]}. It went through 4 actions, but showed up above error. Looking at the function below, presumably it tried to match next.id. For some reason, this chunk was missing the id I guess. Not sure what could happen during the graphreader_import notebook where the id was accidentally dropped or missing.

def get_subsequent_chunk_id(chunk):
data= neo4j_graph.query("""
MATCH (c:Chunk)-[:NEXT]->(next)
WHERE c.id = $id
RETURN next.id AS next
""")"

@Satishpas2
Copy link

I am facing the same issue? Any solution you got?

@jun-li-2020
Copy link
Author

It was just simply missing params={"id": chunk} in the above graph query function.

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

2 participants