Replies: 2 comments 6 replies
-
To limit the number of rows returned by
This configuration ensures that only the top 5 rows are returned by the retriever [1][2]. |
Beta Was this translation helpful? Give feedback.
6 replies
-
@sambitlnt why don't you pass the top_k value in your prompt and tell the llm to add a 'limit top_k' clause at the end of the query? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to put a limit on the number of rows returned by NLSQLRetriever.retrieve? Say I always want only top 5 rows of the result set to be returned.
Beta Was this translation helpful? Give feedback.
All reactions