How thirumurugan240/local_ai_agent works
This repository provides two local chat apps: a single-agent answerer and a two-agent answer-then-edit workflow. In each, a user submits a question through Streamlit; the app includes recent chat history, builds a CrewAI task and crew, and displays and stores the result. The multi-agent app also retains the first answer for comparison. Both configure CrewAI to use a local Ollama model. Workflow details are evidenced by the app excerpts; the README documents the Ollama connection.
Main entry points: single_agent/app.py Chat and history · multi_agent/app.py Chat and history
Components 11
Single-agent app
- Chat and history
single_agent/app.py - Model config
single_agent/app.py - Answer task
single_agent/app.py - Answer crew
single_agent/app.py
Multi-agent app
- Chat and history
multi_agent/app.py - Model config
multi_agent/app.py - Answer task
multi_agent/app.py - Edit task
multi_agent/app.py - Two-agent crew
multi_agent/app.py
Local inference
- Ollama server
Other components
- User
Connections 19
- User → Chat and history: asks
single_agent/app.py - Chat and history → Answer task: builds with history
single_agent/app.py - Chat and history → Model config: configures
single_agent/app.py - Model config → Answer task: provides LLM
single_agent/app.py - Answer task → Answer crew: assigns task
single_agent/app.py - Chat and history → Answer crew: kicks off
single_agent/app.py - Answer crew → Ollama server: uses local model
README.md - Answer crew → Chat and history: returns answer
single_agent/app.py - User → Chat and history: asks
multi_agent/app.py - Chat and history → Answer task: builds with history
multi_agent/app.py - Chat and history → Model config: configures
multi_agent/app.py - Model config → Answer task: provides LLM
multi_agent/app.py - Model config → Edit task: provides LLM
multi_agent/app.py - Answer task → Edit task: provides context
multi_agent/app.py - Answer task → Two-agent crew: assigns task
multi_agent/app.py - Edit task → Two-agent crew: assigns task
multi_agent/app.py - Chat and history → Two-agent crew: kicks off
multi_agent/app.py - Two-agent crew → Ollama server: uses local model
README.md - Two-agent crew → Chat and history: returns edited answer
multi_agent/app.py