EL0M AI ENGINEER

PAI · In development

Private AI Enterprise Platform

A self-hosted AI platform in development that lets an organisation use AI on its own infrastructure with its own documents.

Status
In development
Technologies used
FastAPI · LangChain · RAG · pgvector
Conceptual illustration of a private AI platform: a model gateway and document store enclosed in one isolated network
Conceptual illustration

Select an image to open it larger. Arrow keys move between images.

Objectives

  • Let an organisation use AI on its own documents without sending them to an external provider.
  • Provide the parts a chat window lacks: access control, retrieval over an internal corpus and per-user accounting.

Problem addressed

Companies want AI on internal knowledge but cannot send documents to an external provider. They need access control, per-user usage accounting and a retrieval layer for their own corpus — the parts a chat UI alone does not provide.

Solution and implementation

The platform combines an authentication proxy, a model gateway, a retrieval layer and a usage writer in a containerized stack, so an organisation can offer AI features to several users while documents and prompts stay inside its network.

My contribution Service architecture, gateway integration, retrieval design and container orchestration.

Main features

  • Multi-user access with an authentication proxy
  • Central model gateway
  • Document knowledge base with vector search
  • Per-user usage accounting
  • Fully self-hosted deployment

Technical architecture

  • FastAPI services: auth proxy, gateway, sentinel worker, usage writer
  • pgvector for embeddings and retrieval
  • Docker network isolated from the public internet

Engineering decisions

  • Authentication is a separate proxy in front of the gateway, so no service behind it has to implement its own login.
  • Usage is written by a dedicated worker rather than by the request path, so accounting cannot delay an answer.

Technologies used

  • FastAPI
  • LangChain
  • RAG
  • pgvector
  • Docker
  • Ollama

Discuss a project — Ayi Elom Akakpovi