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

Add additional parameters to Graph Cypher Chain #5979

Merged
merged 8 commits into from
Jun 10, 2023

Conversation

tomasonjo
Copy link
Contributor

@tomasonjo tomasonjo commented Jun 10, 2023

Based on the inspiration from the SQL chain, the following three parameters are added to Graph Cypher Chain.

  • top_k: Limited the number of results from the database to be used as context
  • return_direct: Return database results without transforming them to natural language
  • return_intermediate_steps: Return intermediate steps

@tomasonjo tomasonjo changed the title Add the ability to return direct results from Cypher chain Add additional parameters to Graph Cypher Chain Jun 10, 2023
Copy link
Contributor

@hwchase17 hwchase17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fantastic! thanks so much

@hwchase17 hwchase17 merged commit d5819a7 into langchain-ai:master Jun 10, 2023
@mimomenome
Copy link

Thanks for adding these additional parameters! Will be very useful!

Undertone0809 pushed a commit to Undertone0809/langchain that referenced this pull request Jun 19, 2023
Based on the inspiration from the SQL chain, the following three
parameters are added to Graph Cypher Chain.

- top_k: Limited the number of results from the database to be used as
context
- return_direct: Return database results without transforming them to
natural language
- return_intermediate_steps: Return intermediate steps
This was referenced Jun 25, 2023
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

Successfully merging this pull request may close these issues.

3 participants