Vector index creation and management components for organizing multi-dimensional data structures with space combination and schema integration
Component | Purpose | Schema Integration | Space Management |
---|---|---|---|
Index._spaces | Stores constituent spaces | Validates compatibility | Internal space collection |
Index._schemas | Manages schema objects | Schema validation and access | Cross-space schema mapping |
Index.has_schema() | Validates schema compatibility | Used by QueryDescriptorValidator | Boolean schema checking |
Index.__init__() | Index construction | Combines spaces with schemas | Multi-space initialization |
Index
combines multiple Space
objects into a unified searchable structure through schema compatibility validation and space relationship management. The index maintains references to constituent spaces while ensuring query execution compatibility.
Component | Purpose | Implementation |
---|---|---|
Index._spaces | Stores constituent spaces | Internal space collection with type checking |
Index._schemas | Manages schema objects | Schema validation and cross-reference mapping |
Index.has_schema() | Validates schema compatibility | Boolean schema existence checking for queries |
Space Collection and Management
Schema Integration and Validation
Index Metadata and Configuration
Relationship Type | Purpose | Implementation |
---|---|---|
Space-Schema Binding | Links spaces to schema fields | Field reference validation |
Cross-Space Schema Validation | Ensures schema consistency | Multi-space compatibility checks |
Query Schema Compatibility | Validates query target schemas | Runtime schema verification |
Pattern | Use Case | Benefits |
---|---|---|
Homogeneous Indices | Single space type across fields | Simplified management, consistent behavior |
Heterogeneous Indices | Multiple space types for rich data | Complex queries, multi-modal search |
Hierarchical Indices | Nested space relationships | Structured data representation |
Federated Indices | Distributed space management | Scalability, fault tolerance |