Files
langchain-python/langchain
drod 9907cb0485 Refactor similarity_search function in elastic_vector_search.py (#2761)
Optimization :Limit search results when k < 10
Fix issue when k > 10: Elasticsearch will return only 10 docs


[default-search-result](https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html)
By default, searches return the top 10 matching hits

Add size parameter to the search request to limit the number of returned
results from Elasticsearch. Remove slicing of the hits list, since the
response will already contain the desired number of results.
2023-04-13 22:09:00 -07:00
..
2023-04-11 22:02:37 -07:00
2023-03-22 23:15:04 -07:00
2023-04-13 21:31:18 -07:00
2023-04-13 10:03:43 -07:00
2023-04-02 14:57:45 -07:00
2023-04-12 14:16:58 -07:00
2022-10-24 14:51:15 -07:00
2022-11-12 11:22:32 -08:00
2023-02-20 21:15:45 -08:00
2023-04-06 23:03:09 -07:00
2023-01-19 14:48:30 -08:00