Add Late Interaction Qdrant Retriever
Maintainers usually reply within 1 day
Assessment
This issue has not been assessed yet.
Description
Is your feature request related to a problem? Please describe.
I want to retrieve candidates using dense and sparse embeddings, then rerank that shortlist with multivectors inside Qdrant.
QdrantHybridRetriever returns the fused dense and sparse results. QdrantMultivectorEmbeddingRetriever runs MaxSim over the documents matching its filters. There’s currently no way to combine these stages in a single Qdrant request through Haystack.
Describe the solution you'd like
Add a QdrantLateInteractionRetriever that accepts dense, sparse and multivector query embeddings and executes one query_points() request. For example, Qdrant could retrieve 100 candidates from each of the dense and sparse indexes, fuse them with reciprocal rank fusion, score the top 100 with MaxSim, and return the best 10 Haystack documents.
This is how Qdrant themselves recommend to use multivectors - https://qdrant.tech/documentation/tutorials-search-engineering/using-multivector-representations/.
The candidate limit and final top_k should be independently configurable. Only the final documents and their MaxSim scores need to come back to Haystack.
Describe alternatives you've considered
QdrantHybridRetriever(return_embedding=True) followed by MaxSimRanker gives the desired ranking, but transfers every candidate’s token vectors to Haystack for scoring instead of doing the query all inside Qdrant which is the most optimal in terms of performance and customisation options.
Additional context
- Dominant language
- Python
- Stars
- 212
- Forks
- 396
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 95
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from deepset-ai/haystack-core-integrations
-
integration:qdrant P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
deepset-ai/haystack-core-integrations#4228 · 4 comments ·
Maintainers usually reply within 1 day
-
Qdrant: `in` filter with an empty list matches all documents (delete_by_filter deletes everything)Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
deepset-ai/haystack-core-integrations#4334 ·
Maintainers usually reply within 1 day
-
FAISS: filtered search misses matching documents outside the first top_k * 10 neighboursPossibly taken @davidsbatista claimed this 2 days ago. Open
deepset-ai/haystack-core-integrations#4322 · 1 assignee ·
Maintainers usually reply within 1 day
-
Ollama - `OllamaChatGenerator` returns `finish_reason=None` when output is truncated (`done_reason="length"`)Possibly taken @davidsbatista claimed this 6 days ago. Open
deepset-ai/haystack-core-integrations#4302 · 1 assignee ·
Maintainers usually reply within 1 day
-
Retrievers treat `run(top_k=0)` as unset because of `top_k or self.top_k`Possibly taken @bogdankostic claimed this 8 days ago. OpenP3
Difficulty 4/5 3-5 days Newbie friendliness 48/100
deepset-ai/haystack-core-integrations#4273 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in deepset-ai/haystack-core-integrations
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
micronaut-projects/micronaut-core#14585 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
langgenius/graphon#443 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
[BUG]: Management endpoints /v1/memory/stats and /v1/memory/counts bypass API key authenticationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
docling-project/docling-serve#788 ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability untriaged
Difficulty 1/5 Under an hour Newbie friendliness 78/100
opensearch-project/cross-cluster-replication#1805 ·
Maintainers usually reply within 1 day