Ruvector Collections
High-performance collection management for Ruvector vector databases.
ruvector-collections provides multi-tenant collection support with isolated namespaces, schema management, and collection-level configuration. Part of the Ruvector ecosystem.
Why Ruvector Collections?
- Multi-Tenant: Isolated collections with separate namespaces
- Schema Support: Define and enforce vector schemas
- Collection Configs: Per-collection settings for dimensions, metrics
- Thread-Safe: Concurrent access with DashMap
- Metadata Support: Rich collection metadata and tagging
Features
Core Capabilities
- Collection CRUD: Create, read, update, delete collections
- Namespace Isolation: Logical separation between collections
- Schema Validation: Enforce vector dimensions and types
- Metadata Management: Tags, descriptions, custom properties
- Alias Support: Human-readable names for collections
Advanced Features
- Collection Groups: Organize collections hierarchically
- Access Control: Collection-level permissions (planned)
- Versioning: Collection schema versioning
- Migration: Tools for collection migration
- Statistics: Per-collection metrics and stats
Installation
Add ruvector-collections to your Cargo.toml:
[]
= "0.1.1"
Quick Start
Create a Collection
use ;
Manage Collections
use CollectionManager;
let manager = new?;
// List all collections
for collection in manager.list_collections?
// Get collection by name
let docs = manager.get_collection?;
// Update collection metadata
manager.update_collection?;
// Delete collection
manager.delete_collection?;
Collection Aliases
// Create alias for collection
manager.create_alias?;
// Swap alias to new collection (zero-downtime migration)
manager.swap_alias?;
// Access via alias
let collection = manager.get_collection_by_alias?;
API Overview
Core Types
// Collection configuration
// Vector schema
// Collection info
Manager Operations
Related Crates
- ruvector-core - Core vector database engine
- ruvector-server - REST API server
- ruvector-filter - Metadata filtering
Documentation
- Main README - Complete project overview
- API Documentation - Full API reference
- GitHub Repository - Source code
License
MIT License - see LICENSE for details.