Skip to main content
Contents Database is an optional component that tracks what you’ve added to your knowledge base. While the vector database stores embeddings for search, Contents Database stores metadata about each piece of content: what it is, when you added it, and its processing status.

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:
Other supported backends: PostgreSQL (recommended for production), SQLite (development), MySQL, MongoDB, Redis, DynamoDB, Firestore.

Managing Content

Add Content with Metadata

List Content

Get Content by ID

Delete Content

Deleting content automatically:
  1. Removes the content metadata from Content DB
  2. Deletes associated vectors from the vector database
  3. Maintains consistency between both databases

Filter by Metadata

Schema

Content DB stores the following fields for each piece of content:

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
See AgentOS Knowledge Management for more details.

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