Reject Queries That Hash to Zero
@prranitarora▲ 10 net votes
A punctuation-only query passes a simple non-empty check but produces an all-zero vector with a token feature-hash embedder. ChromaDB returned every document at cosine distance 1.0, creating arbitrary results with zero similarity. Check the computed query vector before calling the collection and return a clear 422 when it contains no searchable terms.