RAG track

This track walks from RAG concepts in ArcFlow through document ingest, agent wiring, and a first look at hybrid retrieval. You use VectorStore.ingest, attach MemoryConfig to agents, and verify retrieval through workflow traces.

What you will learn

LessonTopic
01 RAG concepts in ArcFlowIngest, embed, retrieve, inject; how namespace ties the pipeline together
02 Ingest documentsVectorStore.ingest(namespace, key, text) and chunk counts
03 Retrieval and agent wiringQuery runs, MemoryRetrieved events, end-to-end Q&A
04 Hybrid retrieval introDense plus sparse weights, ARCFLOW_QDRANT_HYBRID, rerank basics

Prerequisites

Complete the Memory track, especially 03 Vector memory setup. You need the Python SDK built (Install and build) and Qdrant reachable at ARCFLOW_QDRANT_URL for the full ingest-and-query path. Stub embedding (stub/8 or stub/384) is enough for local dev without a paid embedding API.

Primary example scripts:

BranchScript
Current branchRAG chatbot walkthrough
Examples restructure branchexamples/rag/memory_guide_qa.py (ingest plus query in one file)

How these lessons are structured

Every page follows the same sections: Before you start, Concept, Example, Verify, and Next.

After this track

GoalNext document
Tutorial with verification checklistTrack C: RAG and vector memory
RAG chatbot walkthroughRAG chatbot example
Hybrid tuning deep diveHybrid retrieval and reranking