-
Install Dependencies:
pip install -r backend/requirements.txt
-
Environment Variables: Create a
.envfile inbackend/with:GEMINI_API_KEY=your_api_key_here
-
Start the Backend:
cd backend python main.pyThe server will start at
http://localhost:8000. -
Start the Frontend: Open
frontend/index.htmlin your browser.
- Drop Zone: Drop folders into the
drop_zonedirectory in the root. The system will automatically ingest them. - Chat: Use the frontend to chat with the agent.
graph TD
User[User] -->|Drops Folder| Watcher[File Watcher]
User -->|Chats| API[FastAPI Backend]
subgraph "Hybrid Intelligence"
API --> Orchestrator
Orchestrator -->|High Complexity| Gemini[Gemini (Manager)]
Orchestrator -->|Low Complexity| Local[Ollama (Worker)]
end
Watcher --> Ingest[Ingestion Pipeline]
Ingest -->|Summarize| Local
Ingest -->|Store| VectorDB[(ChromaDB)]
Gemini -->|Plan/Reason| Response
Local -->|Task Result| Response
Response --> API
