# Beyond Vector Similarity - Making Your Search Smarter

- Speaker: [Guy Wiener](/wiki/speakers/guy-wiener.md)
- Event: [Reversim Summit 2025](/wiki/years/2025.md)
- Video: https://www.youtube.com/watch?v=eKydsQc6UbM
- Transcript: [/transcripts/2025/26-eKydsQc6UbM.md](/transcripts/2025/26-eKydsQc6UbM.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Machine Learning](/wiki/topics/machine-learning.md), [AI and LLMs](/wiki/topics/generative-ai.md), [Databases](/wiki/topics/databases.md)

> 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](https://www.youtube.com/watch?v=eKydsQc6UbM&t=209s) 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](https://www.youtube.com/watch?v=eKydsQc6UbM&t=332s) Evaluating search quality requires metrics like precision, recall, F1, or positive-only metrics when labeled datasets are unavailable.
- [7:38](https://www.youtube.com/watch?v=eKydsQc6UbM&t=458s) The first improvement is using an LLM to extract only the relevant content from a messy, conversational user query.
- [9:52](https://www.youtube.com/watch?v=eKydsQc6UbM&t=592s) Query rewriting translates colloquial phrasing into domain-specific terminology that actually matches database documents.
- [16:17](https://www.youtube.com/watch?v=eKydsQc6UbM&t=977s) Cross-encoders and dedicated rerankers provide a more accurate relevance score by evaluating the query and document together.
- [25:58](https://www.youtube.com/watch?v=eKydsQc6UbM&t=1558s) LLMs can extract evaluation criteria from a query to judge and filter retrieved candidates after the initial search.
- [33:05](https://www.youtube.com/watch?v=eKydsQc6UbM&t=1985s) 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
