fuyu-quant / langchain-wiki

MIT License
12 stars 1 forks source link

ElasticSearch BM25 #1

Open VinuAbraham opened 1 year ago

VinuAbraham commented 1 year ago

I am using Elasticsearch BM25 to fetch relevant documents. How can I add a parameter to tell the retriever to return only first n matching docs?

fuyu-quant commented 1 year ago

Sorry for the late response, but I don't know how to return the top n results with Elasticsearch BM25. I will share it with you if I find it while investigating.