# Jonex

> Self-hosted enterprise knowledge platform that parses multimodal content and compiles it into an ontology before retrieval

- Category: Retrieval & Knowledge (RAG) / RAG Frameworks & Platforms
- Language: Python
- Licence: Jonex Open Source License (Apache-2.0 with additional conditions)
- Repository: https://github.com/yuezhiai/jonex
- Website: https://jonex.ai
- Canonical page: https://ai-tldr.dev/tools/jonex/

## In short

Jonex describes itself as an ontology-based enterprise context engine: a self-hosted platform that turns raw company content into knowledge services that people and enterprise agents can query. It sits in the RAG Frameworks & Platforms category of the Retrieval & Knowledge (RAG) tools and is open-source, written in Python and licensed Jonex Open Source License (Apache-2.0 with additional conditions).

## Overview

Jonex describes itself as an ontology-based enterprise context engine: a self-hosted platform that turns raw company content into knowledge services that people and enterprise agents can query. It joins an all-in-one multimodal parsing engine — text, images, audio, video and structured data — to a knowledge engine, and connects ingestion, parsing, domain knowledge compilation, vector and graph indexing, source-grounded retrieval, feedback loops and business applications in one governed system.

Its distinguishing step is compiling domain knowledge before retrieval. After parsing, Jonex extracts entities and relationships, builds an ontology and aligns entities and concepts across sources, so a search runs against compiled ontology instances as well as chunks. Its ontology search API returns the answer together with the matched knowledge bases, ontology instances, RAG usage, structured source references and an optional reasoning trace. One of its engines, the Ontology+Wiki layer, is spun out as a separate LLM wiki project, Jonex Wiki.

Under the hood it is a Python 3.12 / FastAPI backend with React and TypeScript front-ends behind a single gateway, deployed with Docker Compose (or a PowerShell script on Windows). It packages PostgreSQL, Redis, MinIO, Milvus and Neo4j, can connect RAG-Anything and MinerU for document parsing and LightRAG for graph-enhanced retrieval, and talks to any OpenAI-compatible endpoints for the LLM, embeddings, reranking, vision-language and speech models. Video can be processed locally with ASR, keyframes and a VLM or sent to a cloud service, and parsing workers scale separately, with an optional NVIDIA GPU. The code is under the Jonex Open Source License — Apache 2.0 with added conditions: commercial use is allowed, but running a multi-tenant deployment or removing the console's branding requires a commercial license.

## What it does

- Multimodal parsing of documents, images, audio, video and structured data, with parser profiles and independently scaled parsing workers
- Ontology compilation: entity recognition and linking, relationship extraction and cross-source entity and concept alignment
- Vector and graph indexing on Milvus and Neo4j, with LightRAG, RAG-Anything and MinerU integrations
- Ontology-first knowledge search with source references, an optional reasoning trace and user feedback
- Ingestion from file uploads, REST APIs and S3-compatible sources, organised into domain spaces and knowledge bases
- Bring-your-own models over OpenAI-compatible endpoints for LLM, embeddings, reranking, VLM and ASR, plus an MCP server

## Getting started

Docker Compose runs the complete platform. You need Docker with Compose v2 and Buildx, make on macOS or Linux, and an OpenAI-compatible LLM and embedding provider; the first build downloads images, Python dependencies and RAG models.

1. Clone and initialise configuration

   make init writes deploy/.env (platform, database, storage, LLM gateway), deploy/.env.rag (LightRAG, embeddings, parsing), deploy/.env.mcp and the front-end .env files.

```bash
git clone https://github.com/yuezhiai/jonex.git
cd jonex
make init
```

2. Point it at your models

   Set at least one OpenAI-compatible LLM and embedding provider in deploy/.env. Keep EMBEDDING_MODEL and LIGHTRAG_API_KEY identical in deploy/.env and deploy/.env.rag; add VLM and ASR connections for audio, video or advanced image processing.

```bash
LLMGW_UPSTREAM_LLM_HOST=https://your-openai-compatible-host/v1
LLMGW_UPSTREAM_LLM_API_KEY=your_llm_api_key

LLMGW_UPSTREAM_EMBED_HOST=https://your-embedding-host/v1
LLMGW_UPSTREAM_EMBED_API_KEY=your_embedding_api_key
```

3. Build and start

   The first build creates a shared Python base image, then Compose builds the platform services. Use make logs to follow them; on Windows the same steps are .\jonex.ps1 init, build, up and ps.

```bash
make build
make up
make ps
```

4. Sign in and build a knowledge base

   Open http://localhost/ and sign in with the local demo account (admin / admin123, tenant tenant_jonex_demo) — evaluation only; change it before exposing the deployment. Create a domain space and knowledge base, pick a parser profile, upload files and wait for parsing and knowledge compilation.

```text
URL:      http://localhost/
Username: admin
Password: admin123
Tenant:   tenant_jonex_demo
```

5. Query it through the API

   Log in for an access token, then call the ontology-first search endpoint. The response carries the answer, matched ontology instances and structured source references.

```bash
curl -X POST "http://localhost/api/v1/auth/login" \
  -H "Content-Type: application/json" \
  -H "X-Tenant-ID: tenant_jonex_demo" \
  -d '{"username":"admin","password":"admin123"}'

curl -X POST "http://localhost/api/v1/knowledge-base/search/ontology" \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{"query": "What are the key risks described in these documents?",
       "knowledge_base_ids": ["<knowledge-base-id>"],
       "mode": "hybrid", "top_k": 5, "with_reasoning": true}'
```

## When to use it

- Build a self-hosted company knowledge base over mixed documents, recordings and video, with cited answers
- Give enterprise agents a governed knowledge service whose answers carry source references and a reasoning trace
- Compile a domain ontology and knowledge graph from unstructured files instead of relying on chunk-only retrieval
- Keep parsing, indexing and models on your own infrastructure, swapping in any OpenAI-compatible model endpoints
