Repository navigation
Elastic search to return more than 10 results #1644
|
Hi - By default, elastic search returns only 10 results by default. What should be configured in haystack so that elastic search can return more than 10 results? Thanks, |
Answered by
brandenchan
Nov 2, 2021
Replies: 1 comment
|
Hi @sekh77 , I believe I answered this already in our Slack channel but I'll copy my response here in case someone else is having the same issue! The argument that you are looking for is called |
0 replies
Answer selected by
sjrl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @sekh77 , I believe I answered this already in our Slack channel but I'll copy my response here in case someone else is having the same issue!
The argument that you are looking for is called
top_k. You can supply it when you are initializing the Retriever, or you can provide it when callingpipeline.run(). Here's the documentation on pipeline arguments to help you implement the second option.