Skip to main content
Database integration provides persistent and in-memory storage for agent knowledge and sessions.

Quick Start

1

In-Memory Vector Store

2

File-Based Sessions


User Interaction Flow


InMemoryVectorStore

Fast, in-memory vector storage for development and small knowledge bases.

Methods

Example


FileSessionStore

Persistent file-based storage for session data.

Configuration Options

Methods


Storage Comparison


Best Practices

Fast iteration without database setup. Switch to persistent store for production.
Use FileSessionStore::new().max_messages(100) to prevent unbounded growth.
Vector stores search by embedding similarity - structure your documents for semantic retrieval.

Vector Store

Vector store protocol

Knowledge

Knowledge management