docs

Knowledge AI Platform

Onyx answers questions over your own documents and shows where each answer comes from. It runs in your cluster.

AI PlatformOnyx is included in the AI Platform pack and in Enterprise. See the AI Platform pack →

OnyxChat

A made-up example in the Onyx chat. A support agent asks: Can we refund a customer after 30 days? Onyx searches the connected sources and answers: Yes, as store credit, up to 90 days after purchase. After 30 days, a refund to the original payment method is no longer possible. It cites the refund policy in the wiki and a past ticket.

A made-up question and answer. An admin connects Onyx to LiteLLM once, in its admin panel, and each source is a connector indexed in the background. Onyx keeps its index and its database on one node's disk, and AI Platform backs up neither.

Use case

A support team needs an answer spread across the wiki, past tickets and shared drives. The company does not want to send these documents to a public chatbot.

How a support team finds an internal answer, without and with Knowledge
StepWithoutWith Knowledge
SetupEach person needs access to every source.An admin connects each source once. Every user sees it unless the admin restricts it.
SearchSearch the wiki, tickets and shared drives one by one.Ask one question in the Onyx chat.
AnswerCombine the pieces by hand.Onyx, running in your cluster, writes one answer from the connected sources.
CheckReopen each source to confirm.Open only the documents the answer cites.

Get started

  1. Open Onyx

    Go to https://onyx.<domain>. With the default self-signed certificates, your browser warns you until you import the CA from cert-manager/selfsigned-ca.

  2. Create the admin account

    The first person to sign up becomes the admin. Create it right after the install.

  3. Connect Onyx to LiteLLM

    In the admin panel, open LLM and add an OpenAI-compatible provider. Use the API base http://litellm.litellm.svc:4000, the LiteLLM key (command below) and the model qwen2.5:0.5b.

  4. Check that calls go through LiteLLM

    Ask Onyx a question, then open https://langfuse.<domain>: the call shows up as a trace. If not, check the provider's API base.

# LiteLLM key, for the provider in Onyx
kubectl -n litellm get secret litellm-masterkey -o jsonpath='{.data.masterkey}' | base64 -d

# Langfuse login: email, then password
kubectl -n langfuse get secret langfuse-init -o jsonpath='{.data.LANGFUSE_INIT_USER_EMAIL}' | base64 -d
kubectl -n langfuse get secret langfuse-init -o jsonpath='{.data.LANGFUSE_INIT_USER_PASSWORD}' | base64 -d

Add a data source

Each source is a connector. The Onyx docs explain what each one needs.

  1. Create the credentials

    In the source, create a token, an app or a service account. Give it read access to what you want to index, and nothing more.

  2. Add the connector

    In the Onyx admin panel, open the connectors, pick your source, enter the credentials and choose what to index.

  3. Let it index

    Onyx indexes the documents in the background. Your cluster must reach the source.

  4. Ask

    Ask a question in the chat. The answer cites the documents it comes from.

Onyx has its own accounts, not single sign-on. Assume every user can search every source: in the admin panel, set who can sign up and who sees each source before you index private content.

Data and sizing

  • One disk, no backupEverything Onyx stores is in the onyx namespace. The OpenSearch index (20Gi) and Postgres (10Gi) are folders on one node's disk, under /var/openebs/local. AI Platform alone backs up neither: lose the disk, lose both. With Enterprise, they go to your S3 bucket outside the cluster with every other database and volume.
  • Turning Onyx off deletes its databaseCommenting out onyx in argocd/applications/platform/appset.yaml deletes its Postgres and volume (GitOps).
  • Setup outside GitUsers, connectors, their credentials and the LLM provider live in Onyx, not in your repo. A new cluster from the same repo starts without them.
  • MemoryGive the node 16 GB for AI Platform. Enterprise needs about 24 GB, or 16 GB with the chat-only profile below.

No documents to index? The chat-only profile turns off OpenSearch and indexing, and saves about 4 to 6 GB. On a running install, this removes OpenSearch: plan to index again if you switch back. Uncomment the profile in cluster.yaml and push:

# cluster.yaml: Onyx without document indexing
onyx:
  vectorDB: {enabled: false}
  opensearch: {enabled: false}
  auth: {opensearch: {enabled: false}}
  codeInterpreter: {enabled: false}
  mcpServer: {enabled: false}

Troubleshooting

  • Onyx does not answerCheck that onyx is in global.gatewayHosts in cluster.yaml, and that ArgoCD synced it: kubectl -n argocd get applications.
  • The first chat times outThe node is still busy with the first start. Wait, or add memory.