Welcome to Aletheox (derived from "Aletheia," the Greek concept of truth, and "Paradox," representing opposing viewpoints). Aletheox is an advanced multi-agent decision engine designed to pressure-test ideas, strategies, and premises by generating structured debates between AI agents.
When a user presents an idea or a premise, Aletheox orchestrates a structured, fact-grounded debate. It constructs compelling arguments for the idea, rigorously challenges its flaws, dynamically asks the user for missing context, and ultimately delivers a definitive, well-reasoned verdict on whether the user should proceed, pivot, or abandon the premise.
This project was developed as a comprehensive demonstration of advanced AI orchestration and state management for the Kaggle Capstone Project.
This project implements several advanced AI engineering paradigms:
- Multi-Agent Orchestration: Coordinated execution of specialized agents using LangGraph.
- Tools: Grounding arguments in reality using tools like Tavily Search for real-time web retrieval.
- State Management: Durable session and graph state persistence using PostgreSQL.
- Context Engineering: Dynamic prompt adjustment and information gathering to reduce hallucinations.
- LLM-as-a-Judge: Automated, objective evaluation and verdict generation based on agent debate history.
For a detailed breakdown of the agents, the backend orchestration, frontend stack, and the architecture diagram, please refer to the ARCHITECTURE.md document.
For instructions on deploying Aletheox to production—mimicking our live environment with the backend hosted as a Docker container on Hugging Face Spaces and the frontend on Vercel—please refer to the comprehensive DEPLOYMENT.md guide.
Follow these steps to run Aletheox locally.
- Docker Desktop (for the PostgreSQL database)
- Python 3.12+ & uv (Backend package manager)
- Node.js & pnpm (Frontend package manager)
Aletheox uses PostgreSQL for state management. A docker-compose.yml file is provided in the root directory.
docker-compose up -dNavigate to the backend directory and set up the environment:
cd backendCreate a .env file based on the example:
cp .env.example .envbackend/.env for the AI to function:
GEMINI_API_KEY(Required for LLM functionality).TAVILY_API_KEY(Required for the web search tools to work).
(Note: The other variables like Google/GitHub OAuth, SMTP Email, or Cloudinary are optional. The app will run in guest/anonymous mode without them.)
Install the dependencies and start the FastAPI server:
uv sync
uv run uvicorn main:app --reloadNavigate to the frontend directory:
cd frontendCreate a .env file based on the example (usually points to your backend URL http://localhost:8000):
cp .env.example .envInstall the dependencies and start the Vite development server:
pnpm install
pnpm devVisit the local URL provided by Vite (typically http://localhost:5173) to interact with Aletheox!
Input - "Instead of building a traditional website for our new e-commerce clothing brand, I want to completely remove the visual storefront. The entire shopping experience will just be a phone number users call to speak with an AI voice assistant that helps them pick out clothes and places the order for them."
Verdict after one iteration (it will keep iterating and refining the verdict based on the agent debate until the verdict is reached)

