Understand the Python API flow for Retrieval-Augmented Generation (RAG) when handling file-based queries.
File Upload and Preprocessing
Storage and Retrieval
collection_name
in Qdrant.top_k
similarity search with optional filtering (e.g., by file tag or metadata).Model Selection and Initialization
Chat History and Retrieval Chain
Response Streaming and Storage
Architecture Diagram
Chunks not retrieved from Qdrant
Streaming is slow or fails