AIQB
TutorialsOrdinary

pgvector HNSW Filtering: My RAG Asked for 10 Rows and Got 0

Source: DEV Community·

Summary

pgvector HNSW filtering runs your WHERE clause after the index scan, so filtered RAG queries return fewer rows than LIMIT. Here's the fix.
TierOrdinary
Published
Indexed by AIQB
SourceDEV Community
AIQB record IDintel-0d994e99cd82415e8a030aa4