OpenAI-compatible API
Point any OpenAI SDK, agent framework or tool at /v1 — chat completions with streaming, embeddings and models. Only base_url, api_key and model change.
NEXUS RAG turns your documents into a governed knowledge base with a live knowledge graph, and serves grounded, cited answers through an OpenAI-compatible API — for people, apps and AI agents.
Point any OpenAI SDK, agent framework or tool at /v1 — chat completions with streaming, embeddings and models. Only base_url, api_key and model change.
PDF, DOCX, PPTX, XLSX, CSV, Markdown, HTML, JSON and text. Page, slide and sheet are preserved on every chunk, so every answer points to its exact source.
Dense vectors (pgvector HNSW) fused with BM25 lexical search, metadata filters, graph expansion and a cross-encoder reranker.
Entities and typed relationships are extracted from your documents — each relationship stores the exact quote that proves it, plus a confidence score.
See your knowledge as a landscape of semantic regions, or on a world map when documents mention places.
Inspect every stage of every answer: embedding, vector hits, BM25, graph expansion, reranker scores, context and model latency.
Upload files or whole folders. Ingestion runs asynchronously: parse → chunk → embed → index → connect.
Use the Query Lab, or call /v1/chat/completions from your apps and agents with a scoped API key.
Inline citations link to the exact chunk. Invalid citations are detected and discarded automatically.
Use rag-default for all knowledge, rag-<collection> for one knowledge base, or rag/<model> to choose the upstream LLM. Streaming responses, scoped API keys, tenant isolation and per-document access control are built in. Retrieval metadata arrives under rag.
from openai import OpenAI
client = OpenAI(base_url="https://rag.nexuslayer.eu/v1",
api_key="rag_live_…")
r = client.chat.completions.create(
model="rag-default",
messages=[{"role": "user",
"content": "How does our DR failover work?"}])
print(r.choices[0].message.content) # grounded answer [1][2]
print(r.model_extra["rag"]["sources"]) # citations + quotesPrivate workspace, free to start. Your documents are never used to train models.
Create your workspace →