SeorangAbi AI Agent

Completed on June 30, 2025
SeorangAbi AI Agent
PythonGoogle Gemini

SeorangAbi AI Agent

SeorangAbi AI Agent is a specialized component of the SeorangAbi platform that serves as an intelligent bridge between the SeorangAbi API and Large Language Models (LLMs). Its primary function is to transform natural language queries into optimized SQL statements, enabling team members to access database insights without SQL expertise.

This agent interprets user questions from Discord, processes them through an LLM, and generates secure, read-only SQL queries that interact with the SeorangAbi database system.

Flow

shapes at 25-06-28 17 53 07

Preview

Screenshot 2025-06-29 at 13 31 42 Screenshot 2025-06-28 at 20 17 12 Screenshot 2025-06-28 at 20 16 59 Screenshot 2025-06-29 at 13 32 37

Configuration

  • Copy the .env.example file to .env and fill in the necessary environment variables, including API keys and model parameters.

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd gemini-agent
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install UV if you don’t have it yet:

    curl -LsSf https://astral.sh/uv/install.sh | sh
  4. Install the required dependencies using UV:

    uv pip install -e .

    Or from requirements.txt:

    uv pip sync requirements.txt

Usage

  • To start an api, run:
    uv run -m src.api

Docker Deployment

You can run the agent API using Docker:

  1. Make sure you have Docker and Docker Compose installed on your system.

  2. Build and start the container:

docker-compose up -d
  1. The API will be available at http://localhost:3021.

  2. View logs:

docker-compose logs -f
  1. Stop the container:
docker-compose down
← Back to Portfolio