Skip to content
Snippets Groups Projects
Unverified Commit 42eb73a0 authored by Marcus Schiesser's avatar Marcus Schiesser Committed by GitHub
Browse files

fix: IngestionPipeline not working without vectorStores (#976)

parent 4b59ffee
No related branches found
No related tags found
No related merge requests found
---
"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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment