This guide helps you set up a local development environment for the ATO Agents project without using the provided codespace/devcontainer.
- CPU: 4+ cores recommended
- Memory: 16GB+ RAM recommended
- Storage: 32GB+ free space recommended
- Operating System: Linux, macOS, or Windows with WSL2
-
Python 3.8+
python3 --version
-
Node.js LTS (for any JavaScript tooling)
- Install from nodejs.org
- Or use a version manager like
nvm
-
Ollama
git clone <repository-url>
cd ato-agentsCreate and activate a Python virtual environment:
# Create virtual environment
python3 -m venv py_env
# Activate the environment
# On Linux/macOS:
source py_env/bin/activate
# On Windows:
# py_env\Scripts\activateAdd activation to your shell profile for convenience:
echo "source $(pwd)/py_env/bin/activate" >> ~/.bashrc
# or for zsh users:
# echo "source $(pwd)/py_env/bin/activate" >> ~/.zshrcpip3 install -r requirements/requirements.txtKey Python packages installed:
- LangChain & Ollama integration:
langchain,langchain-community,langchain-ollama - Agent frameworks:
langgraph,crewai,smolagents,autogen - RAG stack:
chromadb - Utilities:
openai,pandas,sentence-transformers,pdfplumber
Ollama provides local LLM inference capabilities.
Linux/macOS:
curl -fsSL https://ollama.com/install.sh | shWindows:
- Download installer from ollama.com
# Start Ollama server in background
ollama serve &Wait for the service to be ready (usually 10-15 seconds).
# Pull the llama3.2 model (this may take several minutes)
ollama pull llama3.2
# Verify installation
ollama listFor faster first responses, warm up the model:
# Run warmup script if available
bash scripts/warmup.shThis script will:
- Ensure the Python environment is properly activated
- Install additional warmup dependencies if needed
- Run initial model queries to cache responses
agents/- Main agent implementationsdata/- Sample datasets (CSV, PDF files)requirements/- Python dependency specificationsscripts/- Setup and utility scriptsimages/- Documentation imageslabs.md- Learning labs and exercises
Activate your Python environment first:
source py_env/bin/activateThen run individual agents:
python agents/agent1.py
# or other agent filesSample data files are provided in the data/ directory:
offices.csv- Sample CSV dataoffices.pdf- Sample PDF document
-
Verify Python environment:
python -c "import langchain, ollama; print('Dependencies OK')" -
Test Ollama connection:
ollama list
-
Run a simple agent test:
python agents/goal.py
Ollama not starting:
- Ensure no other Ollama instances are running:
pkill ollama - Check system resources (16GB+ RAM recommended)
- Try starting with:
ollama serve --host 0.0.0.0
Python dependencies failing:
- Ensure you're using Python 3.8+
- Update pip:
pip install --upgrade pip - Try installing dependencies one by one to isolate issues
Model download issues:
- Check internet connection
- Ensure sufficient disk space (models can be 4GB+)
- Try pulling specific model versions:
ollama pull llama3.2:latest
Environment activation:
- Ensure virtual environment path is correct
- Re-run the environment setup steps
- Check shell profile modifications took effect
- Memory: Close unnecessary applications, models require significant RAM
- CPU: Multi-core systems perform better for concurrent agent operations
- Storage: Use SSD storage for faster model loading
If the automated setup script doesn't work, you can run the manual setup:
bash scripts/setup.shThis script handles the complete environment setup including:
- Python virtual environment creation
- Dependency installation
- Ollama installation and configuration
- Model downloading and warmup
For VSCode users, the project includes recommended settings:
- Python interpreter:
py_env/bin/python - Markdown files open in preview mode
- GitHub Copilot disabled (for learning purposes)
Install recommended extensions:
mathematic.vscode-pdf- PDF viewing support
Once your environment is set up:
- Review
README.mdfor project overview - Check out
labs.mdfor hands-on exercises - Explore the
agents/directory for example implementations - Run sample agents to verify everything works
If you encounter issues:
- Check the troubleshooting section above
- Verify system requirements are met
- Review error messages for specific dependency issues
- Consider running the automated setup script instead