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 →
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.
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.
| Step | Without | With Knowledge |
|---|---|---|
| Setup | Each person needs access to every source. | An admin connects each source once. Every user sees it unless the admin restricts it. |
| Search | Search the wiki, tickets and shared drives one by one. | Ask one question in the Onyx chat. |
| Answer | Combine the pieces by hand. | Onyx, running in your cluster, writes one answer from the connected sources. |
| Check | Reopen each source to confirm. | Open only the documents the answer cites. |
Get started
Open Onyx
Go to
https://onyx.<domain>. With the default self-signed certificates, your browser warns you until you import the CA fromcert-manager/selfsigned-ca.Create the admin account
The first person to sign up becomes the admin. Create it right after the install.
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 modelqwen2.5:0.5b.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 -dAdd a data source
Each source is a connector. The Onyx docs explain what each one needs.
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.
Add the connector
In the Onyx admin panel, open the connectors, pick your source, enter the credentials and choose what to index.
Let it index
Onyx indexes the documents in the background. Your cluster must reach the source.
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
onyxnamespace. 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
onyxinargocd/applications/platform/appset.yamldeletes 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
onyxis inglobal.gatewayHostsincluster.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.