import { Client } from 'cyborgdb';const client = new Client({ baseUrl: 'http://localhost:8000', apiKey: 'your-api-key' });// Use the same key that was used to create the indexconst indexKey = new Uint8Array(32); // Your stored 32-byte key// Or convert from hex: Buffer.from('your-hex-key', 'hex')try { const index = await client.loadIndex({ indexName: 'my-existing-index', indexKey }); console.log('Index loaded successfully'); // Now you can perform operations on the loaded index const results = await index.query([0.1, 0.2, 0.3], { topK: 5 }); console.log('Query results:', results);} catch (error) { console.error('Failed to load index:', error.message);}