mirror of
https://github.com/run-llama/LlamaIndexTS.git
synced 2026-07-19 18:43:34 -04:00
fix: IngestionPipeline not working without vectorStores (#976)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"llamaindex": patch
|
||||
---
|
||||
|
||||
Fix IngestionPipeline not working without vectorStores
|
||||
@@ -77,13 +77,15 @@ export class IngestionPipeline {
|
||||
if (!this.docStore) {
|
||||
this.docStoreStrategy = DocStoreStrategy.NONE;
|
||||
}
|
||||
this.vectorStores = this.vectorStores ?? {
|
||||
[ModalityType.TEXT]: this.vectorStore,
|
||||
};
|
||||
this.vectorStores =
|
||||
this.vectorStores ??
|
||||
(this.vectorStore
|
||||
? { [ModalityType.TEXT]: this.vectorStore }
|
||||
: undefined);
|
||||
this._docStoreStrategy = createDocStoreStrategy(
|
||||
this.docStoreStrategy,
|
||||
this.docStore,
|
||||
Object.values(this.vectorStores),
|
||||
this.vectorStores ? Object.values(this.vectorStores) : undefined,
|
||||
);
|
||||
if (!this.disableCache) {
|
||||
this.cache = new IngestionCache();
|
||||
|
||||
Reference in New Issue
Block a user