This is only applicable to the CyborgDB SDKs. The REST API is stateless, so you don’t need to load indexes explicitly.
Key Points
- Same Method: Service SDKs use
createIndex()for both creating new indexes and connecting to existing ones - Exact Match Required: The index key and configuration must exactly match the original
- Automatic Detection: The service automatically determines whether to create or connect based on the index name
- No Separate Load Method: Unlike embedded SDKs, service SDKs don’t have a separate
loadIndex()method
Index Caching
Index caching is handled automatically by the CyborgDB service. The service optimizes performance through:- Automatic Caching: Frequently accessed indexes are cached automatically
- Smart Eviction: Least recently used indexes are evicted when memory is needed
- Server-Side Optimization: No client-side cache configuration required
API Reference
For more information on loading an encrypted index, refer to the API reference:Python SDK Reference
API reference for
load_index() in PythonJS/TS SDK Reference
API reference for
load_index() in JavaScript/TypeScript