Metadata is more than labels. It is signal amplification.
Vectors are fuzzy. Metadata is precise. Sometimes, the best search isn't semantic—it's structural. Enriching your chunks with extrat data improves filtering and ranking.
If you split a document, Chunk #52 doesn't know it belongs to a "Legal Contract." Strategy: Prepend the document summary to the chunk.
Original: "The tenant must pay by the 5th."
Enriched: "(Context: Lease Agreement 2024, Section: Payments) The tenant must pay by the 5th."
Now, the vector "knows" this is about a lease payment, not a dinner bill.
Users ask questions. Documents contain statements. There is a "Mismatch." Strategy: Ask an LLM to generate 3 questions that this chunk answers, and embed those questions.
Now, a user asking "rate limit" hits a direct semantic match.
Don't just index what is written. Index what is meant. Metadata enrichment bridges the gap between the user's intent and the author's text.
Key Intuition: "Embed the question, not just the answer."