Goal
Allow users to upload a document (PDF/TXT/MD) and ask questions about it with retrieval-augmented generation.
Tasks
Why
RAG is THE killer feature of modern LLM applications. Understanding the full pipeline (chunk → embed → retrieve → augment → generate) is essential knowledge. This also bridges nicely with your prompt-hub project.
Learning Points
- Text chunking strategies (fixed size, semantic, recursive)
- Vector similarity search (cosine similarity, approximate nearest neighbors)
- Embedding models: dimensions, cost, quality trade-offs
- Prompt engineering for RAG: how to inject context without confusing the model
- Hallucination mitigation: "answer only based on provided context"
Goal
Allow users to upload a document (PDF/TXT/MD) and ask questions about it with retrieval-augmented generation.
Tasks
POST /documents/upload— accept file, extract text (pdf-parse for PDF, raw for txt/md)sqlite-vecextension (or simple cosine similarity)Why
RAG is THE killer feature of modern LLM applications. Understanding the full pipeline (chunk → embed → retrieve → augment → generate) is essential knowledge. This also bridges nicely with your prompt-hub project.
Learning Points