Skip to content
123gamalPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Enterprise Knowledge Operations Assistant (EKOA)

EKOA is an AI-first enterprise knowledge platform integrating Retrieval-Augmented Generation (RAG), multi-agent orchestration (LangGraph), and enterprise-grade security.

Architecture

Service Directory Technology Purpose
API apps/api/ FastAPI + SQLAlchemy REST backend — auth, org/workspace CRUD, document upload
AI apps/ai/ LangGraph + FastAPI Multi-agent RAG orchestration with SSE streaming
Worker apps/worker/ Celery + Redis Background document ingestion, chunking, embeddings
Web apps/web/ Next.js 15 + Tailwind UI — dashboard, document manager, streaming chat

Infrastructure: PostgreSQL 16, Qdrant (vectors), Redis (cache/broker), Nginx (gateway)

Quick Start

1. Start infrastructure

docker compose -f infrastructure/docker/docker-compose.yml up -d postgres qdrant redis

2. Install Python packages

pip install -e packages/shared-config
pip install -e packages/shared-types
pip install -e packages/shared-utils

3. Run database migrations

cd apps/api
alembic upgrade head

4. Start development servers

API backend (terminal 1):

cd apps/api && uvicorn apps.api.main:app --reload --port 8000

AI service (terminal 2):

cd apps/ai && uvicorn apps.ai.main:app --reload --port 8001

Celery worker (terminal 3):

cd apps/worker && celery -A apps.worker.main worker --loglevel=info

Frontend (terminal 4):

cd apps/web && npm install && npm run dev

5. Access the application

Testing

# Run all Python tests
pytest tests/ -v

# Run specific test suites
pytest tests/test_api.py -v       # API integration tests
pytest tests/test_agents.py -v    # LangGraph agent tests
pytest tests/test_parsing.py -v   # Document parsing tests

Docker (Full Stack)

# Build and start all services
docker compose -f infrastructure/docker/docker-compose.yml up -d --build

# View logs
docker compose -f infrastructure/docker/docker-compose.yml logs -f

# Stop everything
docker compose -f infrastructure/docker/docker-compose.yml down

Project Structure

ekoa/
├── apps/
│   ├── api/           # FastAPI REST service
│   ├── ai/            # LangGraph agent service
│   ├── worker/        # Celery background worker
│   └── web/           # Next.js 15 frontend
├── packages/
│   ├── shared-config/ # Centralised settings (pydantic-settings)
│   ├── shared-types/  # Shared Pydantic schemas
│   └── shared-utils/  # Utility functions
├── infrastructure/
│   ├── docker/        # Docker Compose & Dockerfiles
│   └── nginx/         # Nginx reverse proxy config
├── tests/             # Integration & unit tests
├── docs/              # Architecture documentation
└── Makefile           # Common dev tasks

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages