cygon24/local-ai-lab-v6
0
Local AI Lab — V6 Multi-Agent
Part of the Local AI Lab series — building AI systems from scratch, one version at a time.
Architecture
User goal
↓
🟣 Orchestrator — analyzes goal, routes, synthesizes final answer
↓
🔵 Researcher — web_search, fetch_webpage, knowledge base
🟠 Executor — calculate, run_python, read/write files
↓
🟣 Orchestrator — final answerSetup on HF Spaces
Required secret:
GROQ_API_KEY = your_key_hereAdd it in: Space Settings → Variables and secrets → New secret
Get a free key at: https://console.groq.com (no billing required)
Running locally
# Set your Groq key
export GROQ_API_KEY=your_key_here
# Install
pip install -r requirements.txt
# Run
streamlit run app.pyOr use Ollama without a Groq key:
ollama serve
streamlit run app.pyStack
LangGraph multi-agent graph
LangChain tool decorator, ChatGroq
Groq API free hosted LLM (llama-3.1-8b-instant)
sentence-transformers embeddings (no GPU needed)
ChromaDB vector store — persistent on /data
SQLite long-term memory — persistent on /data
Streamlit UIGitHub: github.com/cygon23
Built in Arusha, Tanzania
