This message was deleted.
# community-help
s
This message was deleted.
n
Also, are there a set of parameters such that search reduces to something very close to TF-IDF/BM25?
k
Most of the standard information retrieval benchmarks focus on searching of queries against large pieces of text. We focus primarily on searching on smaller documents, across multiple fields. In these cases, the term frequency is not a very useful metric. Therefore we do not consider term frequency for ranking. We instead consider the extent of overlap of tokens from the query with the text, typo count etc.
n
Understood. That would explain the poor results I got in my first run 😅 How do you quantitatively measure any changes to the algorithm then? And, by smaller documents I assume you mean things like names, chapter titles, news headlines and the likes and not stuff like product descriptions, 5-6 sentence paragraphs, correct?
k
We have our own test suites for checking ranking correctness. By smaller docs, it includes description as well, but typically descriptions are never used standlone but weighted lower when compared to other fields like title etc. None of the MTEB type of benchmarks really reflect searches for these use cases.
n
Can you please point me to these tests if they exist in github? I agree with what you said, but as we look to move away from Elasticsearch and Manticore and completely commit to typesense - some sort of benchmarking for pure token based search (no vector/hybrid search component) on standard datasets would really help us take that leap with more confidence.
k
Sure, see here: https://github.com/typesense/typesense/blob/main/test/collection_specific_test.cpp#L1470 These types of tests are present throughout the test suite as we test ranking with various other subfeatures like filtering etc.
n
thank you, I’ll take a look.
In any case, would you be able to add a section somewhere in the docs explaining briefly the search algorithm? 🙏
k
We have documented the high level components used for deriving the text match score.: https://typesense.org/docs/guide/ranking-and-relevance.html#text-match-score
👀 1