RAG ingest, indexing (SQLite FTS5), retrieval, and snippet injection — aligned with Stack architecture styling.

Sources documents/ from_chat/ Ingest /api/rag/ingest pipecat_offline_patch.py Chunker local_rag.py::_chunk_text 1200 / overlap 200 SQLite FTS5 index rag_data/index.sqlite WRITE: local_rag.ingest_file() Query text / voice voice+vision Agent text_chat_agent.py local tools loop search_knowledge_base local_rag.py READ: FTS query/snippet Snippet injection text_chat_agent.py + bot_vllm.py response grounding Attachment mirror: chat_attachments.py → rag_data/from_chat/
Scope: ingest + indexing + retrieval for text, voice, and voice+vision. Script references are inline on nodes.