Quick Start Guide
This guide will help you set up ARKOS and create your first intelligent agent with persistent memory.Prerequisites
Before you begin, ensure you have:- Python 3.8 or higher
- Git
- PostgreSQL database (Supabase recommended)
- 8GB+ RAM recommended
- GPU optional but recommended for local models
Installation
1. Clone the Repository
2. Install Dependencies
3. Configure Your Environment
Create a.env file in the project root:
.env with your configuration:
Starting the Inference Engine
Check if LLM Server is Already Running
Since ARKOS is often deployed on shared servers, check if the LLM server is already running:Starting the LLM Server (if not running)
The project uses SGLang to run the Qwen 2.5-7B-Instruct model:Starting the Embedding Server (if not running)
The project uses Huggingface-TEI to run the Qwen 2 1.5B-Instruct modelRunning Your First Agent
1. Start the API Server
/v1/chat/completions endpoint.
2. Run the Test Interface
In another terminal:exit or quit to stop.
Basic Usage Examples
Using the OpenAI-Compatible API
Streaming Responses
Using Memory Directly
Configuration Files
Main Configuration (config_module/config.yaml)
State Graph Configuration (state_module/state_graph.yaml)
Testing Your Setup
Health Check
Test Chat Completion
Common Issues and Solutions
Database connection failed
Database connection failed
Ensure your Make sure the
DB_URL is correctly set in .env:conversation_context table exists in your database.LLM server not responding
LLM server not responding
Check if the SGLang server is running on port 30000:If not running, start it with
bash model_module/run.shCUDA/GPU not detected
CUDA/GPU not detected
Ensure PyTorch is installed with CUDA support:
Port already in use
Port already in use
Find and kill the process using the port:
Next Steps
Architecture Overview
Understand the system architecture
Module Documentation
Deep dive into each module
Development Setup
Set up your development environment
API Reference
Explore the API endpoints
Getting Help
- GitHub Issues: Report bugs or request features
- Documentation: You’re already here!
- Community: Join our discussions on GitHub