Skip to content

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