AI Application EngineeringBeginner1 min read
A typical RAG pipeline ingests and cleans documents, splits them into chunks, creates embeddings, indexes chunks, retrieves candidates for a query, reranks or filters them, and sends selected context to the LLM.
AI Application EngineeringBeginner1 min read
RAG supplies relevant facts at inference time and is well suited to changing or permissioned knowledge.
AI Application EngineeringBeginner1 min read
Grounding means tying an answer to retrieved evidence rather than relying only on model parameters or unsupported guesses.
AI Application EngineeringBeginner1 min read
If retrieval produces no sufficiently relevant or authorized evidence, the application should abstain, ask a clarifying question, or offer a safe fallback rather than invent an answer.
AI Application EngineeringIntermediate1 min read
Hybrid search combines lexical search, which matches terms, with vector search, which matches semantic similarity.
AI Application EngineeringIntermediate1 min read
Reranking scores an initial candidate set with a more precise model or cross-encoder to improve ordering.
AI Application EngineeringIntermediate1 min read
Precision measures how much of the retrieved material is relevant, while recall measures how much of the relevant material was retrieved.
AI Application EngineeringIntermediate1 min read
Query rewriting transforms a user's request into a search-friendly query, possibly resolving references from conversation history or expanding synonyms.
AI Application EngineeringIntermediate1 min read
Use metadata filters, query rewriting, hybrid retrieval, reranking, deduplication, and context-budget selection to reduce irrelevant passages.
AI Application EngineeringIntermediate1 min read
A robust ingestion pipeline discovers sources, extracts text, normalizes content, removes duplicates, chunks documents, attaches metadata, embeds chunks, and writes them to an index.
AI Application EngineeringIntermediate1 min read
PDF ingestion should extract text and structure where possible, use OCR for scanned pages, and preserve page numbers and headings for citations.
AI Application EngineeringIntermediate1 min read
Assign stable source and chunk identifiers, detect document version changes, and upsert new chunks while removing stale chunks from the previous version.