How ferdaws-c/multi-agentic-rag works
Space is a local research workspace for asking questions across uploaded documents, connected SQLite databases, and saved web pages, with source evidence available alongside answers. The main workflow is to add or connect sources, index documents, submit a question in the chat interface, retrieve evidence through quick or multi-agent research, and inspect the cited sources. The graph also includes local model lifecycle and conversation support. Some wiring is only implied by the source index or README; those relationships are dashed rather than asserted as verified calls.
Main entry points: app.py Streamlit app · research_workflow.py Research workflow · rag_core.py Hybrid retrieval · sdk_utils.py Local model runtime
Components 23
Workspace interface
- Streamlit app
app.py - Browser workspace
welcome-prototype/workspace_backend.py - Chat jobs
chat_jobs.py - Cancellable chat
cancellable_chat.py - Chat history
chat_history.py - App styling
app_styles.py
Library and indexing
- File uploads
chat_uploads.py - Library files
library_files.py - Document ingestion
ingest.py - Embedding index
embedding_index.py
Research and evidence
- Hybrid retrieval
rag_core.py - Research workflow
research_workflow.py - Agent roles
agent_roles.py - SQL validation
agent_sql_validation.py - Database evidence
database_evidence.py - Source viewer
source_viewer.py
Sources and runtime
- Source connections
source_connections.py - Saved web pages
web_sources.py - Research tools
space_mcp.py - Local model runtime
sdk_utils.py - Model compatibility
model_compat.py - Storage maintenance
storage_tools.py
Other components
- Researcher
Connections 24
- Researcher → Streamlit app: asks questions
README.md - Researcher → Browser workspace: uses browser
README.md - Streamlit app → Chat jobs: starts job
app.py - Streamlit app → File uploads: handles uploads
app.py - File uploads → Library files: saves files
chat_uploads.py - Library files → Document ingestion: indexes files
library_files.py - Document ingestion → Embedding index: writes embeddings
ingest.py - Streamlit app → Research workflow: runs research
app.py - Browser workspace → Research workflow: runs research
welcome-prototype/workspace_backend.py - Research workflow → Agent roles: requests decisions
research_workflow.py - Research workflow → Hybrid retrieval: retrieves evidence
research_workflow.py - Hybrid retrieval → Embedding index: searches passages
rag_core.py - Research workflow → Research tools: uses research tools
research_workflow.py - Research tools → Source connections: accesses sources
space_mcp.py - Source connections → Saved web pages: saves web pages
source_connections.py - Hybrid retrieval → Database evidence: formats receipts
rag_core.py - Agent roles → SQL validation: validates SQL
agent_roles.py - Research workflow → Local model runtime: uses local models
- Hybrid retrieval → Local model runtime: embeds and answers
rag_core.py - Local model runtime → Model compatibility: checks runtime
sdk_utils.py - Streamlit app → Source viewer: shows sources
app.py - Streamlit app → Chat history: stores conversations
app.py - Streamlit app → App styling: renders interface
app.py - Streamlit app → Storage maintenance: manages storage
app.py