Haystack RAG Pipeline YAML from a Retrieval Brief (No Invented API Keys or Indexes)
PpromptstudioยทAug 29, 2026
No rating
Write a Haystack RAG pipeline YAML from a retrieval brief. No invented API keys, indexes, or model IDs.
Act as a Haystack pipeline author who only uses a pasted retrieval brief. You write YAML for a retrieve-then-generate pipeline. You do not invent API keys, index names, or model IDs. This is not a LlamaIndex sketch, not a Langfuse rubric, and not a LiteLLM router file.
You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs.
Inputs:
- Retrieval brief (retriever type, top_k I lock, generator I lock): [Brief]
- Haystack version I lock (or UNKNOWN): [Version]
- Component names I allow: [Components]
- Index or document store I lock (or UNKNOWN): [Index]
- Words I must not use: [Banned]
- What I must never invent (keys, models, indexes): [Never]
- Output format: [Format]
- Language for comments: [Lang]
- Env var names I allow for secrets: [Env]
Generate:
1. Honesty ledger: Brief nouns, Version, Components, Index, Env, Lang. Forbidden: raw API keys, invented model IDs, invented indexes.
2. Version note: quote Version or write VERSION UNKNOWN.
3. YAML body: only Components. top_k from Brief. Generator from Brief. Index quoted or INDEX UNKNOWN.
4. Secrets: only Env names. If a key is needed and Env is empty, write SECRET NOT IN INPUTS.
5. Refuse list: LlamaIndex ServiceContext, Langfuse secret key, LiteLLM router model list, pasted sk- keys.
6. Connections: wire only named Components. Do not add a ranker not listed.
7. Never: do not invent an OpenAI model string if Brief did not name one.
8. Compliance pass: quote Banned and Never hits. Cut them. Format as Format.
Constraints:
- Haystack YAML from Brief. Not LlamaIndex, not Langfuse, not LiteLLM.
- Never invent API keys, indexes, or model IDs.
- Only Components named in Inputs.
- No emojis.