Run This Ai
EN DE

SeekDB Tutorial: Deploy Vector + Full-Text Search for AI Agents

Step-by-step tutorial: run SeekDB in embedded mode, fork copy-on-write sandboxes, execute hybrid vector+full-text queries, and deploy with Docker.

In this tutorial, you'll deploy SeekDB β€” the AI-native search database from OceanBase β€” and run your first vector + full-text hybrid query. You can try it in 30 seconds with the Python SDK, or run it as a Docker server for production workloads.

πŸš€ Want to deploy SeekDB yourself?

Docker configs, system requirements, and installation guides β€” all on one page.

View SeekDB Tool Page β†’

Step 1: Try the Embedded Mode

No servers, no schemas, no embedding setup. Install the Python SDK and go:

pip install -U pyseekdb

Embedded mode runs in-process; switch to server or OceanBase mode with a single line of configuration.

SeekDB 30-second demo

Step 2: Fork a Sandbox for Agent Exploration

The signature feature: copy-on-write sandboxes. Snapshot your whole database in seconds β€” no data copy β€” and let your agent experiment freely:

FORK DATABASE agent_state TO agent_sandbox_42;
USE agent_sandbox_42;
INSERT INTO memory (session_id, embedding, content) VALUES (...);
-- Merge the good work back
MERGE TABLE agent_sandbox_42.memory TO agent_state.memory;

Step 3: Run One Hybrid Query

Vector, full-text, and scalar filters combine in a single SQL query β€” no separate databases, no manual reconciliation:

SELECT * FROM memory
WHERE MATCH(content) AGAINST ('budget report')
  AND category = 'finance'
ORDER BY VEC_DISTANCE(embedding, ?)
LIMIT 10;

Step 4: Deploy with Docker

For production, run the official image oceanbase/seekdb:latest (70K+ pulls). We recommend 2 CPU / 4 GB RAM minimum, and 4 CPU / 8 GB for real workloads. Use the pre-generated docker-compose on the tool page to get started in minutes.

Why It Works So Well

The async Change Stream pipeline decouples DML from index building, and two-level HNSW makes new vectors instantly searchable β€” 1,523 QPS with 21.7 ms P99, 10.7Γ— Milvus and 3.2Γ— Elasticsearch throughput. Full ACID and MySQL protocol mean LangChain, LlamaIndex, and Dify work without adapters.

πŸš€ Deploy SeekDB in minutes

Ready-made Docker config, system requirements, and install guides.

View SeekDB Tool Page β†’
#seekdb #tutorial #vector-search #docker