Skip to main content

Knowledge

Knowledge is workspace-scoped RAG: you upload documents, Actx0 indexes them, and your agents search for relevant passages at query time. Knowledge is shared across agents in the workspace. Session memories are personal facts from a conversation. Knowledge is the manual, policy, or FAQ you want every agent to cite.

The mental model

Use knowledge when the answer should come from your documents. Use memories when the answer should come from what this user or session already said.

Two phases: index and retrieve

1. Index (writing knowledge)

Upload a UTF-8 .txt or .md file (max 2 MB) with a title and optional labels.
  1. Store. Actx0 saves the file and creates a document in processing status.
  2. Index. The text is split into overlapping passages and made searchable.
  3. Ready. Status becomes indexed. Failed jobs are marked failed.
Indexing is asynchronous. Search only returns hits from documents that have finished indexing.

2. Retrieve (reading knowledge)

Before a model call, search with the user’s question. Actx0 filters by workspace (and optional tag) and returns scored passages — documentId, chunkId, score, and text. Pass those passages into the prompt. Your app decides which hits to include.

Labels and filters

Labels are key=value pairs (JSON array or comma-separated). Keys must not start with _. The tag label is indexed for retrieval. Prefer tag=faq, tag=policy, or similar when you want search to stay inside a subset of the corpus.
Search can filter on that tag:
Default search limit is 10 (max 100).

Document status

You can list documents, inspect size and character count, and delete a document. Delete takes effect immediately; search stops returning that document.

Build against this flow

  • Upload canonical docs (policies, FAQs, runbooks), not chat logs — those belong in sessions.
  • Wait for indexed before you rely on search in production.
  • Use tag= when one workspace holds several corpora.
  • Retrieve a small set of chunks and cite them; do not dump the whole document into the prompt.
  • Document count and storage follow your workspace plan. Search consumes AI usage.

Next steps

Upload Document

Multipart upload, labels, and limits

Search Documents

Semantic retrieval over indexed chunks

Doc Sync

Sync repo docs into knowledge from GitHub Actions

Prompts

Versioned templates to pair with retrieved context