Observed since 21 Oct, 08:53 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
AgentVectorDB (AVDB): The Cognitive Core for Your AI Agents. A lightweight, embeddable vector database for Agentic AI systems, built on LanceDB.
The Cognitive Core for Your AI Agents - Powered by LanceDB
AgentVectorDB (AVDB) is a specialized memory management system developed by Superagentic AI. Built on top of LanceDB's powerful vector database capabilities, it provides optimized cognitive architecture for AI agents.
We extend LanceDB's robust foundation with agent-specific features:
# Basic installation
pip install agentvectordb
# Development installation
git clone https://github.com/superagenticai/agentvectordb.git
cd agentvectordb
pip install -e ".[dev]"
#For windows if you encounter UnicodeDecodeError set $env:PYTHONUTF8=1
from agentvectordb import AgentVectorDBStore
from agentvectordb.embeddings import DefaultTextEmbeddingFunction
# Initialize store
store = AgentVectorDBStore(db_path="./agent_db")
ef = DefaultTextEmbeddingFunction(dimension=384)
# Create collection
memories = store.get_or_create_collection(
name="agent_memories",
embedding_function=ef
)
# Add memories (minimum 8 recommended)
initial_memories = [
{
"content": "User prefers dark mode",
"type": "preference",
"importance_score": 0.8
},
# Add more memories...
]
# Add batch
memories.add_batch(initial_memories)
# Query memories
results = memories.query(
query_text="user preferences",
k=2
)
store = AgentVectorDBStore(db_path="./db")
Methods:
get_or_create_collection()list_collections()store = AsyncAgentVectorDBStore(db_path="./db")
Methods:
add(): Add single memoryadd_batch(): Add multiple memoriesquery(): Search memoriesprune_memories(): Remove old memoriesdelete(): Remove memoriescount(): Get collection sizefrom agentvectordb.embeddings import BaseEmbeddingFunction
class CustomEmbedder(BaseEmbeddingFunction):
def __init__(self, dimension=384):
super().__init__(dimension=dimension)
def embed(self, texts):
# Your embedding logic here
return vectors
# Prune old memories
pruned = collection.prune_memories(
max_age_seconds=7*24*3600, # 7 days
min_importance_score=0.3
)
# Complex queries
results = collection.query(
query_text="important task",
filter_sql="type = 'task' AND importance_score > 0.8",
k=5
)
async def handle_memories():
store = AsyncAgentVectorDBStore(db_path="./async_db")
collection = await store.get_or_create_collection(
name="async_memories",
embedding_function=ef
)
await collection.add_batch(memories)
results = await collection.query(
query_text="search term",
k=5
)
Upcoming features:
We welcome contributions! See our Contributing Guide.
Licensed under Apache 2.0 - same as LanceDB. See LICENSE.
Built with ❤️ by Superagentic AI using LanceDB
AgentVectorDB: Empower Your AI Agents with Memory!
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.5 | 11 Sept 2026 | 9 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 21 Oct, 08:53 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:db9c1e4589d07fc596d7448ca7cc2d290d5557325669d72136ac58d9f3151f8f