You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.**Create Indexes**: Use `createIndex()` to create appropriate vector indexes for better performance
323
323
2.**Choose Index Type**:
324
-
- Use **BHIVE indexes** for pure vector search workloads where you primarily perform similarity searches
324
+
- Use **HYPERSCALE indexes** for pure vector search workloads where you primarily perform similarity searches
325
325
- Use **COMPOSITE indexes** for mixed queries that combine vector similarity with scalar field filtering
326
326
3.**Tune Parameters**: Adjust `indexScanNprobes` and `indexTrainlist` based on your data size and performance requirements
327
327
4.**Filter Early**: Use WHERE clauses to reduce the search space before vector calculations
328
328
5.**Index Strategy**:
329
-
-**BHIVE**: Better for high-performance vector similarity search with minimal scalar filtering
329
+
-**HYPERSCALE**: Better for high-performance vector similarity search with minimal scalar filtering
330
330
-**COMPOSITE**: Better when you frequently filter by both vector similarity and scalar fields in the same query
331
331
332
332
## Error Handling
333
333
334
334
```typescript
335
335
try {
336
336
awaitvectorStore.createIndex({
337
-
indexType: IndexType.BHIVE,
337
+
indexType: IndexType.HYPERSCALE,
338
338
indexDescription: "IVF,SQ8",
339
339
});
340
340
} catch (error) {
@@ -369,11 +369,11 @@ If you see errors related to insufficient training data, you may need to:
369
369
370
370
## Question: Do I need to create an index before using CouchbaseQueryVectorStore?
371
371
372
-
No, unlike the Search-based CouchbaseVectorStore, the Query-based implementation can work without pre-created indexes. However, creating appropriate vector indexes (BHIVE or COMPOSITE) will significantly improve query performance.
372
+
No, unlike the Search-based CouchbaseVectorStore, the Query-based implementation can work without pre-created indexes. However, creating appropriate vector indexes (HYPERSCALE or COMPOSITE) will significantly improve query performance.
373
373
374
-
## Question: When should I use BHIVE vs COMPOSITE indexes?
374
+
## Question: When should I use HYPERSCALE vs COMPOSITE indexes?
375
375
376
-
- Use **BHIVE indexes** when you primarily perform vector similarity searches with minimal filtering on other fields
376
+
- Use **HYPERSCALE indexes** when you primarily perform vector similarity searches with minimal filtering on other fields
377
377
- Use **COMPOSITE indexes** when you frequently combine vector similarity with filtering on scalar fields in the same query
378
378
379
379
## Question: Can I use both CouchbaseVectorStore and CouchbaseQueryVectorStore on the same data?
0 commit comments