maheshsmc/dense-retriever-day6
0
Dense Retriever — Day 6 (Embeddings vs Keywords)
This Space demonstrates a dense (embedding) retriever using SentenceTransformers. Paste your own small corpus (one passage per line) or use the default tiny corpus.
How to use
- Enter a query.
- (Optional) Paste a custom corpus (one line = one doc). Leave empty to use the default.
- Choose Top‑K.
- Click Submit.
Local run
pip install -r requirements.txt
python app.pyNotes
- Model:
all-MiniLM-L6-v2(fast & lightweight) - CPU works fine for tiny demos.
