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.
- Store. Actx0 saves the file and creates a document in
processingstatus. - Index. The text is split into overlapping passages and made searchable.
- Ready. Status becomes
indexed. Failed jobs are markedfailed.
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 optionaltag) 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 arekey=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.
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
indexedbefore 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
