Skip to content

BM25 parameters #1693

Answered by brandenchan
mgreenbe asked this question in Questions
Discussion options

You must be logged in to vote

Hi @mgreenbe , I don't know the exact steps yet to making this happen but from a first quick search on the topic, I have some ideas.

In Haystack, when you initialize an ElasticsearchDocumentStore, you use something called a mapping to define how the ES index works (you can see the default mapping here). You also have the option however to provide your own custom mapping when initializing the ElasticsearchDocumentStore via the custom_mapping argument.

In this thread, the top answer provides a settings dictionary to define specific b and k_1 values. I think these could probably be inserted into a custom mapping. It also seems possible to make a PUT request to the ES instance directly.

Hope …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mgreenbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants