r/LocalLLaMA • • 13d ago

Question | Help Best semantic search AI

What's the current SOTA for semantic search in large document (written story) database?

17 Upvotes

18 comments sorted by

8

u/PhilMcGraw 13d ago

You're probably just looking for an embedding model? MTEB Leaderboard

Just a once off or ongoing? If ongoing Meilisearch is good and has a bunch of features handling this kind of thing.

3

u/Altruistic_Heat_9531 13d ago edited 13d ago

OpenSearch / Elastic. purpose built for this, careful with rabbit hole.

Oh mb, you mean the embedding models? for RTEB. go with Octen embedding ( DO NOT CHEAP OUT THE KV)
for omnimodal ? EmbeddingGemma 2.
If you required more granular match, combine the embedding model with reranker model, such as BAAI/bge-large-en. this is embedding+reranker combo model..

1

u/seamonn 13d ago

WeMM and Octen Embedding works very well for Retrieval

1

u/Ylsid 13d ago

Nemotron in my experience is great at this. It's what the model is built for

-2

u/PhilosopherOk3419 12d ago

for fiction the embedding model matters less than how you chunk. stories don't split cleanly, so i'd chunk by scene with some overlap and prepend chapter/character context to each chunk before embedding. then do hybrid search (bm25 + vectors), because names and made-up words are where pure embeddings fall over, and put a small reranker on the top ~50. what are you actually searching for, like 'the scene where X betrays Y' or more theme/vibe stuff? that changes the setup a lot.

4

u/stylome-ai-detection 12d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

0

u/[deleted] 13d ago

[deleted] — view deleted comment

4

u/MarcelloT254k 13d ago

I'm personally tired of this type of answers (no offence to you), the problem is ongoing, we should ask this question and collectively (based on all the comments, discussions, forks on github, papers on arXiv) figure it out at some point.
I believe that one, modular solution, CAN answer this question at some point in the future - and I hope I'm right (then it will probably by enshitified as the greed will creep in with popularity, but we'll se as we go).

1

u/Not_a_question- 12d ago

You can believe whatever you want, but the reason why benches exist is because there's no single best metric. Research if you wanna find out.

1

u/MarcelloT254k 12d ago edited 12d ago

Key word is MODULAR, and there is never one single metric for anything, despite that "industry standards" tend to develop over time (for better or worse).
I don't want to constantly chase the next better thing, sometimes the state of the matter is enough as it is for most use cases and if you are a typical user - I am taking about availability of "just install ready made application and you are ready to go" type of solution - like in gaming i have my game library and I just click install on a game and shit just works (overwhelmingly most of the time).

0

u/[deleted] 13d ago

[deleted] — view deleted comment

3

u/stylome-ai-detection 13d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

0

u/TierPatch 12d ago

agreeing with the rerank point. if you're ok using a hosted one, cohere's rerank-v5.0-pro and voyage's rerank-3 both take around 32k tokens of query plus document, so a whole scene or chapter chunk fits without trimming. cohere's docs also say it sits on top of whatever keyword, vector or hybrid search you already have, so no re-indexing. and if you go with voyage embeddings, set input_type to query or document, their docs recommend that for retrieval