[Bug]: wrong retriever from version 0.6.0
Maintainers usually reply within 4 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- numpy, python
- Domain
- machine-learning, search
Research direction
Start with retrieve_with_prf and reproduce the exact "Errore 0x000006D9" query using the listed embedding models, comparing fastembed 0.5.1 with 0.6.0-0.7.1. Confirm which retrieval stage changes and use the working shorter query as a comparison; done means the exact query retrieves the expected Qdrant document again, with a regression test if the repository exposes one.
Written by the indexing model from the issue text.
Description
What happened?
Hi, I implemented a prefech retriever.
I am using the model:
SparseTextEmbedding("Qdrant/bm25")
TextEmbedding("sentence-transformers/paraphrase-multilingual-mpnet-base-v2")
LateInteractionTextEmbedding("answerdotai/answerai-colbert-small-v1")
I tried the query: "Errore 0x000006D9"
This is the abnormal behaviour:
with fastembed version 0.5.1 it retrieves the right qdrant docuemnt
From fastembed 0.6.0 to 0.7.1 it retrieves the wrong qdrant document
instead, if the query is: "Erro 0x000006D9" or "Erro 0x000006D9" it works fine.
This is my function;
def retrieve_with_prf(query, limit=5, k_feedback=3):
try:
sparse_vec = list(sparse_embedding_model.embed([query]))[0]
initial_results = client.query_points(
collection_name=collection_name,
query=models.SparseVector(**sparse_vec.as_object()),
using=sparse_vector_name,
with_payload=True,
limit=k_feedback
)
if not initial_results or not initial_results.points:
return []
feedback_texts = [
p.payload.get('text', '')[:1000]
for p in initial_results.points
if p.payload.get('text')
]
if not feedback_texts:
return []
feedback_embeddings = list(dense_embedding_model.embed(feedback_texts))
avg_vec = np.mean(feedback_embeddings, axis=0).tolist()
return client.query_points(
collection_name=collection_name,
query=avg_vec,
using=dense_vector_name,
with_payload=True,
limit=limit
)
except Exception:
return []
What is the expected behaviour?
No response
A minimal reproducible example
No response
What Python version are you on? e.g. python --version
python 3.13
FastEmbed version
v0.7.1
What os are you seeing the problem on?
No response
Relevant stack traces and/or logs
- Dominant language
- Python
- Stars
- 3.3k
- Forks
- 314
- Avg merge
- 5d 7h
- Merged PRs (30d)
- 23
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 qdrant/fastembed
-
[Bug]: Bm25 splits Tamil, Hindi, Sinhala and other words on their combining marksPossibly taken @Nipuna-Lakruwan claimed this 12 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 30/100
qdrant/fastembed#886 · 2 comments ·
Maintainers usually reply within 4 days
-
miniCOIL clean_words mutates input and loses counts when normalized words collidePossibly taken @pear1-pea claimed this 20 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 1/100
Maintainers usually reply within 4 days
-
[Bug]: Revision-pinned HF downloads can falsely report intact files as corruptedPossibly taken @N7766 claimed this 24 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 82/100
Maintainers usually reply within 4 days
-
[Bug]: URL-backed custom models with the same basename reuse the wrong cached modelPossibly taken @rtmalikian claimed this 24 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Maintainers usually reply within 4 days
-
[Bug]: rerank_pairs raises TypeError when pairs are passed as a tuple of pairsPossibly taken @michaelkillgta claimed this 53 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 22/100
Maintainers usually reply within 4 days
All issues in qdrant/fastembed
Similar issues
-
DMB documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ubuntu/ubuntu-project-docs#921 ·
Maintainers usually reply within 1 day
-
⏳ Pending feedback 🐛 Bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
jumpserver/jumpserver#18282 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
ClickHouse/loom#2014 ·
Maintainers usually reply within 1 day
-
accepted
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
future-agi/future-agi#5274 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 2 days