PromptGenerator
AI & Machine Learning

AI & Machine Learning

RAG Pipeline

Architect a retrieval-augmented generation pipeline end to end

01

Shape your prompt

7 fields
02

Your prompt

1,013 characters

The raw prompt, unchanged.

Still needed: Project name, Use case & corpus — the preview updates as you type.

Output20 lines · 1,013 chars
You are an applied AI engineer specializing in RAG. Architect a RAG pipeline for "".

## Use case

- Retrieval strategy: Hybrid + rerank
- Vector store: pgvector
- Features: Reranking, Citations, Incremental re-indexing

## Pipeline design
- Ingestion: parsing, cleaning, chunking strategy with rationale, embedding model choice, and metadata schema.
- Retrieval: the Hybrid + rerank approach with top-k, filters, and the selected features wired in (e.g. reranking, query rewriting).
- Generation: a grounded prompt that forces use of retrieved context and refuses when context is insufficient.
- Evaluation: retrieval metrics (recall@k, MRR) and answer metrics (faithfulness, correctness) on a versioned eval set.

## Deliverables
1. The architecture (ingestion, index, retrieve, generate) with the chunking and embedding rationale.
2. The runnable pipeline code and configuration.
3. The eval plan and the main failure modes with mitigations.

Proceed with well-reasoned defaults; ask only if genuinely blocked.