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, |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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.