Wiki: Beyond Vector Similarity - Making Your Search Smarter
For agents: Markdown version · Wiki index · Explore
- Speaker: Guy Wiener
- Event: Reversim Summit 2025
- Video: https://www.youtube.com/watch?v=eKydsQc6UbM
- Transcript: /transcripts/2025/26-eKydsQc6UbM.md
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: Machine Learning, AI and LLMs, Databases
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
This talk explores how to upgrade basic vector similarity search into a smarter, more robust retrieval system. The speaker explains that relying purely on out-of-the-box vector search often falls short of meeting real user intent. By incorporating preprocessing steps like content extraction, query rewriting, reranking models, LLM-based judging, and metadata filtering, developers can dramatically improve search accuracy. Ultimately, the audience learns a comprehensive, multi-step search workflow that combines traditional database features with modern AI tools.
Key points
- 3:29 Basic vector search converts text into embeddings and retrieves similar items using vector distance, but it rarely works perfectly out of the box.
- 5:32 Evaluating search quality requires metrics like precision, recall, F1, or positive-only metrics when labeled datasets are unavailable.
- 7:38 The first improvement is using an LLM to extract only the relevant content from a messy, conversational user query.
- 9:52 Query rewriting translates colloquial phrasing into domain-specific terminology that actually matches database documents.
- 16:17 Cross-encoders and dedicated rerankers provide a more accurate relevance score by evaluating the query and document together.
- 25:58 LLMs can extract evaluation criteria from a query to judge and filter retrieved candidates after the initial search.
- 33:05 Combining vector search with tabular metadata using text-to-SQL allows the system to handle structured constraints effectively.
Takeaways
- Separate user queries into core search content, evaluation criteria, and tabular metadata before hitting the database.
- Use dedicated rerankers or cross-encoders to re-evaluate and filter initial candidate results for higher precision.
- Always measure search performance using standard metrics or positive-only user feedback to continuously tune the pipeline.
Questions this talk answers
- How can I improve my vector search results when users enter vague or conversational queries?
- What is the difference between simple cosine similarity and using cross-encoders for reranking?
- How do I combine unstructured vector search with structured metadata filters in a single pipeline?
Technologies
PostgreSQL, MySQL, Pincone, Hugging Face, Cohere
Tags
embeddings, information retrieval, llm, rag, reranking, search, vector search