What Is a Knowledge Base?
A knowledge base is a named collection of indexed documents. Each document is broken into chunks, embedded using a vector model, and stored in Feather’s search index. When an agent receives a user message, it queries attached knowledge bases and retrieves the top-matching chunks to ground its response in your data rather than model hallucinations. Knowledge bases are created and managed independently of agents. You attach them to an agent revision viaknowledge_base_refs, which means a single knowledge base can be shared across multiple agents.
The Ingestion Pipeline
When you add a document to a knowledge base, Feather runs it through an asynchronous ingestion pipeline:Upload content
Submit a file (PDF, DOCX, TXT, HTML, Markdown) via
POST /v1/knowledge-base/knowledge-bases/{kb_id}/documents/upload, or add raw text directly via POST /v1/knowledge-base/knowledge-bases/{kb_id}/documents/text.Processing begins
Feather queues the document for processing. The document’s
ingestion_status moves to processing. During this phase, Feather extracts text, splits it into overlapping chunks, and normalizes the content.Embedding and indexing
Each chunk is passed through Feather’s embedding model to produce a vector representation. Vectors are written to the index alongside the original text and metadata.
ingestion_status moves to completed.Polling ingestion status
Because ingestion is asynchronous, you should poll the status endpoint before assuming a document is ready:status field (queued, processing, completed, failed) and an overall ready boolean that is true only when all documents in the knowledge base have completed ingestion.
Newly created knowledge bases with no completed documents will return no results from semantic search. Always confirm
ready: true before attaching a knowledge base to a production agent revision.Connectors
Feather supports automated syncing from external content sources via connectors. When you configure a connector, Feather periodically polls the source and re-ingests documents that have changed.Notion
Connect a Notion workspace and select pages or databases to sync. Feather re-indexes when page content changes.
Google Drive
Sync files from a Google Drive folder. Supports Docs, Sheets (as text), and uploaded files.
Amazon S3
Point Feather at an S3 bucket or prefix. New and updated objects are picked up on each sync cycle.
Semantic Search
You can query any knowledge base directly — without going through an agent — using the search endpoint:chunk_id— unique identifier for the chunkdocument_id— the source documentscore— cosine similarity score (0–1)text— the raw chunk contentmetadata— document title, source URL, page number, etc.
Sensitivity Classification
Every knowledge base has asensitivity level that controls which agents (and which users) can access its content:
| Level | Description |
|---|---|
public | No restrictions. Any agent may access this knowledge base. |
internal | Accessible to agents with internal or higher clearance. |
confidential | Accessible to agents with confidential or higher clearance. |
restricted | Accessible only to agents with restricted clearance. |
Access Control Lists (ACL)
Beyond sensitivity levels, you can define fine-grained ACLs on individual knowledge bases. An ACL entry specifies:- Principal — a user ID, agent ID, or role name
- Clearance level — the maximum sensitivity the principal can access
- Permissions —
read,write, oradmin
Attaching Knowledge Bases to Agents
Knowledge bases are attached to an agent at the revision level viaknowledge_base_refs:
retrieval_top_k field on each ref controls how many chunks are retrieved from that specific knowledge base per turn. Tune this value to balance context quality against token usage.
Next Steps
Ingest Your Documents
A step-by-step walkthrough of uploading files, configuring a connector, and verifying ingestion status.
Knowledge Base API Reference
Full reference for knowledge base, document, connector, and search endpoints.