Skip to content
Sobo Engineering Notes

Sobo Engineering Notes

Engineering Logs for Troubleshooting & Debugging

  • Home
  • Articles
  • Categories
  • About

metadata-filter

RAG metadata filter excluding valid documents in Google Gemini

July 8, 2026 by Jordan Lee
a close up of a cell phone with buttons

Problem Description During a rollout of an A/B test that adds dynamic metadata fields (e.g., promotion_code, confidence_score, user_attributes), the Gemini RAG pipeline starts rejecting a large fraction of candidate documents. The symptoms observed in production logs are: Retrieval failures with HTTP 400 responses. Log entries such as: 2026-07-08T12:34:56.789Z ERROR gemini.retrieval.filter Metadata schema validation failed: missing required … Read more

Categories LLM Systems Tags gemini, google, metadata-filter, rag

Pinecone RAG metadata filters excluding relevant documents

July 4, 2026 by Jordan Lee
brown pinecones

Problem Description During a canary rollout, a subset of production traffic was routed to a staging Pinecone index that contains only 5 k vectors. The Retrieval‑Augmented Generation (RAG) pipeline applies a metadata filter to restrict results to the appropriate document_type and language. Engineers observed: Frequent hallucinated answers from the LLM because the retrieved context was empty … Read more

Categories Vector Databases Tags metadata-filter, pinecone, rag

Haystack audio processing fails with empty document metadata

June 23, 2026 by Jordan Lee
a field full of hay bales under a cloudy sky

Haystack Audio Processing Fails with Empty Document Metadata Problem Description During document ingestion, audio files are passed through the AudioDocumentConverter and Speech2Text nodes but the resulting Document.text field is empty and the metadata columns in PostgreSQL contain NULL or truncated values. The pipeline completes without raising an exception, yet the indexed documents contain no transcription … Read more

Categories RAG Systems Tags haystack, metadata-filter

Grafana RAG metadata filter excluding relevant data sources

May 30, 2026 by Jordan Lee
a close-up of a server room

Problem Description When developing locally with Grafana’s Retrieval Augmented Generation (RAG) component, engineers often observe that queries return incomplete or empty results. The RAG backend logs messages such as: 2024-05-12T14:23:07Z WARN rag.filter – RAG metadata filter: excluded source ‘my_test_ds’ due to missing tag ‘rag_enabled’ 2024-05-12T14:23:07Z WARN rag.filter – RAG filter applied, 0 of 5 candidate … Read more

Categories Observability Tags grafana, metadata-filter, rag
© 2026 Sobo Engineering Notes. Practical engineering insights and troubleshooting knowledge.