AI & PromptingIntermediate 2 to 3 hours

Prompt for Metadata Extraction

Extract tags from documents to improve RAG search filtering.

The Scenario

Your RAG system is returning bad results because it relies entirely on vector similarity. A search for "2024 budget" is returning the "2022 budget" because the words are similar. You need to extract metadata (Year, Department, DocType) from every document *before* embedding so you can use hard filters.

The Brief

Write the LLM prompt that will process raw document text and output a strict JSON block of metadata for the vector database.

Deliverables

  • The Metadata Extraction Prompt
  • The JSON Schema required (Year, Department, DocType, Summary)
  • A fallback instruction (what the AI should do if the Year is not mentioned in the text)

Submission Guidance

Hybrid search (Vector Similarity + Metadata Filtering) is the industry standard for RAG. Your prompt must be robust enough to handle documents that are missing information without hallucinating dates.

Submit Your Work

Your submission is graded against the rubric on the right. If you pass, you get a public Badge URL you can share on LinkedIn. There is no draft save, so work offline first and paste your finished response here.

This appears on your public Badge.

0/20000 charactersMarkdown supported

One per line or comma separated. Up to 5 links.

By submitting, you agree your submission text, name, and evaluation will appear on a public Badge URL.