Skip to content

About

Built a feedback-driven semantic search system to improve retrieval from implicit user behavior, combining embeddings, vector search, and learning-to-rank; improved NDCG at 10 by 75% and reduced query reformulation by 80% across 600+ queries

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

SearchMind

Semantic search that learns what you actually meant.

Most search systems treat every query as a fresh start. SearchMind learns from what users do with the results.


The problem

Query: database timeout

Is that a debugging question? A documentation lookup? An architecture decision? An incident investigation? The words don't say — but the user's behaviour does.

How it works

Query
  │
Intent prediction
  │
Embedding ──► Vector search ──► Top K
                                  │
                              Reranking
                                  │
                               Results
                                  │
                          Implicit feedback
                                  │
                      ┌───────────┴───────────┐
                      ▼                       ▼
              Query understanding      Ranking model

Implicit feedback

No thumbs up/down — real users don't click them. The signal comes from behaviour:

Positive Negative
Result clicked Immediate abandonment
Result opened Query reformulation
Time spent reading Results ignored
Content copied Repeated searching

A reformulation is one of the strongest signals available:

"database timeout"        →  results ignored
"postgres connection timeout"  →  clicks result #4

That sequence says more about intent than either query alone.

Retrieval experiments

Each version is measured against the last on the same evaluation set:

Version Approach
v1 BM25 / keyword baseline
v2 Pure semantic vector search
v3 Semantic + cross-encoder reranking
v4 Feedback-driven ranking

Metrics

Queries with known relevant documents, scored on:

  • NDCG@10 — are the most relevant documents at the top?
  • Recall@K
  • MRR
  • Precision@K

NDCG@10 is the headline number: it rewards putting the best result first, not merely somewhere on the page.

Corpus

A technical knowledge base — documentation, Stack Overflow-style questions, GitHub issues, engineering articles, code snippets.

Later

  • intent-aware ranking (debugging / learning / documentation / implementation)
  • exploration vs. exploitation — occasionally surface an uncertain result to learn from it
  • per-user personalisation
  • continuous evaluation, where every interaction becomes evaluation data

Stack

Python · PyTorch · Hugging Face · FAISS · sentence-transformers · learning-to-rank

Status

🚧 In development.

License

MIT

About

Built a feedback-driven semantic search system to improve retrieval from implicit user behavior, combining embeddings, vector search, and learning-to-rank; improved NDCG at 10 by 75% and reduced query reformulation by 80% across 600+ queries

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors