Compare commits

...

15 Commits

Author SHA1 Message Date
sweep-ai[bot] f3c4a4d217 Merge main into sweep/fix-index-initialization 2023-11-15 04:49:32 +00:00
sweep-ai[bot] d3199d8cf4 Merge main into sweep/fix-index-initialization 2023-11-15 01:24:47 +00:00
sweep-ai[bot] 82c30e4b7e Merge main into sweep/fix-index-initialization 2023-11-15 00:21:37 +00:00
sweep-ai[bot] beec819061 Merge main into sweep/fix-index-initialization 2023-11-15 00:18:17 +00:00
sweep-ai[bot] f62e234188 Merge main into sweep/fix-index-initialization 2023-11-14 23:05:47 +00:00
sweep-ai[bot] d86cd5d178 Merge main into sweep/fix-index-initialization 2023-11-14 20:08:16 +00:00
sweep-ai[bot] 3ea2f544f8 Merge main into sweep/fix-index-initialization 2023-11-14 17:16:36 +00:00
sweep-ai[bot] 324b886225 Merge main into sweep/fix-index-initialization 2023-11-14 17:09:20 +00:00
sweep-ai[bot] 884b951c03 Merge main into sweep/fix-index-initialization 2023-11-14 04:20:01 +00:00
sweep-ai[bot] 601a3390c8 Merge main into sweep/fix-index-initialization 2023-11-14 04:00:11 +00:00
sweep-ai[bot] 6789cadf2a Merge main into sweep/fix-index-initialization 2023-11-14 02:10:45 +00:00
sweep-ai[bot] db72c4a2c3 Merge main into sweep/fix-index-initialization 2023-11-14 02:02:15 +00:00
sweep-ai[bot] f01bf00123 Merge main into sweep/fix-index-initialization 2023-11-14 01:59:07 +00:00
sweep-ai[bot] d51cc6f869 Merge main into sweep/fix-index-initialization 2023-11-10 03:12:28 +00:00
sweep-ai[bot] 49574cb493 feat: Updated packages/core/src/indices/vectorStor 2023-11-08 11:17:10 +00:00
@@ -63,13 +63,7 @@ export class VectorStoreIndex extends BaseIndex<IndexDict> {
let indexStructs = (await indexStore.getIndexStructs()) as IndexDict[];
let indexStruct: IndexDict | undefined;
if (options.indexStruct && indexStructs.length > 0) {
throw new Error(
"Cannot initialize index with both indexStruct and indexStore",
);
}
if (options.indexStruct) {
if (options.indexStruct && indexStructs.length == 0) {
indexStruct = options.indexStruct;
} else if (indexStructs.length == 1) {
indexStruct = indexStructs[0];