How vighneshmane07/jarvisx works
Jarvis AI is a document-aware assistant with a React/TanStack frontend and FastAPI backend. Users sign up or log in, then chat with the assistant, which can use conversational memory, tools, and retrieved PDF context; users can also upload PDFs and ask document-specific questions. The map includes the documented frontend experience and backend subsystems. Some frontend-to-API links are based on README descriptions; unsampled implementation details are not inferred.
Main entry points: rag_pipeline.py RAG pipeline · jarvis_agent.py Jarvis agent · auth_api.py Authentication API · chat.py Chat API
Components 23
Frontend experience
- Web application
Frontend/src/routes - Frontend router
Frontend/src/router.tsx - Route tree
Frontend/src/routeTree.gen.ts - Chat dashboard
Frontend/src/routes/dashboard.tsx - Login and signup
Frontend/src/routes
API and identity
- FastAPI application
app/main.py - Authentication API
app/api/auth_api.py - JWT tokens
app/auth/jwt_handler.py - Chat API
app/api/chat.py - SQL database
app/database.py - User records
app/models/user_model.py - Chat records
app/models/chat_model.py
Assistant runtime
- Jarvis agent
app/agents/jarvis_agent.py - LLM service
app/services/llm_service.py - Agent tools
app/tools - Web search tool
app/tools/web_search_tool.py
Document knowledge
- PDF API
app/api/rag_api.py - RAG pipeline
app/rag/rag_pipeline.py - PDF loader
app/rag/pdf_loader.py - Vector store
app/rag/vector_store.py - Document retriever
app/rag/retriever.py
Other components
- User
- OpenRouter
Connections 30
- User → Web application: uses
- Web application → Frontend router: routes through
- Frontend router → Route tree: configures
Frontend/src/router.tsx - Route tree → Chat dashboard: registers
Frontend/src/routeTree.gen.ts - Route tree → Login and signup: registers
Frontend/src/routeTree.gen.ts - Chat dashboard → Chat API: streams chat
- Chat dashboard → PDF API: uploads and queries
- Login and signup → Authentication API: authenticates
- FastAPI application → Chat API: registers
app/main.py - FastAPI application → Authentication API: registers
app/main.py - FastAPI application → PDF API: registers
app/main.py - Authentication API → SQL database: gets session
app/api/auth_api.py - Authentication API → User records: queries and saves
app/api/auth_api.py - Authentication API → JWT tokens: creates token
app/api/auth_api.py - User records → SQL database: uses base
app/models/user_model.py - Chat API → Jarvis agent: invokes
app/api/chat.py - Chat API → SQL database: gets session
app/api/chat.py - Chat API → Chat records: uses records
app/api/chat.py - Chat records → SQL database: uses base
app/models/chat_model.py - Jarvis agent → Agent tools: calls tools
app/agents/jarvis_agent.py - Jarvis agent → Document retriever: retrieves context
app/agents/jarvis_agent.py - Jarvis agent → LLM service: generates response
app/agents/jarvis_agent.py - LLM service → OpenRouter: requests completion
app/services/llm_service.py - Jarvis agent → Web search tool: may use
- PDF API → RAG pipeline: uploads and asks
app/api/rag_api.py - RAG pipeline → PDF loader: loads PDF
app/rag/rag_pipeline.py - RAG pipeline → Vector store: creates store
app/rag/rag_pipeline.py - RAG pipeline → Document retriever: retrieves chunks
app/rag/rag_pipeline.py - RAG pipeline → LLM service: generates answer
app/rag/rag_pipeline.py - Document retriever → RAG pipeline: gets vector store
app/rag/retriever.py