Why Use Content DB
Without Content DB, you can search your knowledge base but can’t see what’s in it or manage individual pieces of content. With Content DB, you get:- Visibility: See all content that’s been added, track processing status, view metadata
- Management: Delete specific content and automatically clean up associated vectors
- Updates: Edit names, descriptions, and metadata without rebuilding the knowledge base
- Filtering: Use agentic filtering to filter search results by metadata
Contents DB is required for agentic filtering and the AgentOS Knowledge UI.
Setup
Agno supports multiple database backends:- PostgreSQL
- SQLite
- MongoDB
- In-Memory
Managing Content
Add Content with Metadata
List Content
Get Content by ID
Delete Content
Deleting content automatically:- Removes the content metadata from Content DB
- Deletes associated vectors from the vector database
- Maintains consistency between both databases
Filter by Metadata
Schema
Content DB stores the following fields for each piece of content:| Field | Type | Description |
|---|---|---|
id | str | Unique identifier |
name | str | Content name |
description | str | Content description |
metadata | dict | Custom metadata |
type | str | Content type |
size | int | File size in bytes |
linked_to | str | ID of linked content |
access_count | int | Number of times accessed |
status | str | Processing status |
status_message | str | Status details |
created_at | int | Created timestamp |
updated_at | int | Updated timestamp |
external_id | str | External ID for integrations like LightRAG |
AgentOS Integration
Content DB is required for the AgentOS Knowledge UI. With it, the web interface provides:- Content Browser: View all uploaded content with metadata
- Upload Interface: Add new content through the web UI
- Status Monitoring: Real-time processing status updates
- Metadata Editor: Update content metadata through forms
- Search and Filtering: Find content by metadata attributes
- Bulk Operations: Manage multiple content items at once
Next Steps
Vector DB
Understand the embedding storage layer
Filtering
Filter search results by metadata
AgentOS
Manage knowledge through the web UI
Database Setup
Database configuration guides