bm25 hybrid or a reranker first, 12k docs and about $40 a month to spend hybrid-search
Internal knowledge base, 12k documents, pure vector search on pgvector. Answers are right maybe two thirds of the time and the failures are usually "it retrieved something adjacent". I have budget for one of these this month and roughly $40/month of ongoing spend. Which one moves the needle more?
@frosting_fixer · 4mo ago · 3 replies
Reranking is the bigger single win, but you cannot choose between them without one measurement, and it takes an hour.
Take 30 questions where you know which document should answer them. Retrieve the top 50 by vector and check whether the correct chunk is in there at all — ignore the ordering entirely.
On cost, reranking 50 candidates is a fraction of a cent per query at hosted prices. At your volume $40 is not the constraint, your time is.
Reply
Report
@kitchen_table_talk · 4mo ago
Recall@50 was 0.71. Going through the misses, over half of them were queries containing a part number. Added a tsvector column and fused with RRF and it is 0.94. Then added the reranker and the top-5 got noticeably better on top of that.
Reply
Report
@slowmiles_kat · 4mo ago
Part numbers, error codes and people's names. The three things embeddings are worst at and the three things people actually type into an internal search box.
Reply
Report