Ask a question to get started
Enter to sendā¢Shift+Enter new line
Create a ElasticSearchBM25Retriever from a list of texts.
create( cls, elasticsearch_url: str, index_name: str, k1: float = 2.0, b: float = 0.75 ) -> ElasticSearchBM25Retriever
Returns:
elasticsearch_url
str
URL of the Elasticsearch instance to connect to.
index_name
Name of the index to use in Elasticsearch.
k1
float
2.0
BM25 parameter k1.
b
0.75
BM25 parameter b.