@@ -3,6 +3,7 @@ import { MarkdownIngester } from './MarkdownIngester';
33import { type BookChunk , DocumentSource } from '../types' ;
44import { Document } from '@langchain/core/documents' ;
55import { VectorStore } from '../db/postgresVectorStore' ;
6+ import { type VectorStoreUpdateOptions } from '../utils/vectorStoreUtils' ;
67import { logger } from '../utils/logger' ;
78import * as fs from 'fs/promises' ;
89import * as path from 'path' ;
@@ -111,7 +112,10 @@ export class StarknetBlogIngester extends MarkdownIngester {
111112 * Starknet Blog specific processing based on the pre-summarized markdown file
112113 * @param vectorStore
113114 */
114- public override async process ( vectorStore : VectorStore ) : Promise < void > {
115+ public override async process (
116+ vectorStore : VectorStore ,
117+ options ?: VectorStoreUpdateOptions ,
118+ ) : Promise < void > {
115119 try {
116120 // 1. Read the pre-summarized documentation
117121 const text = await this . readSummaryFile ( ) ;
@@ -124,7 +128,7 @@ export class StarknetBlogIngester extends MarkdownIngester {
124128 ) ;
125129
126130 // 3. Update the vector store with the chunks
127- await this . updateVectorStore ( vectorStore , chunks ) ;
131+ await this . updateVectorStore ( vectorStore , chunks , options ) ;
128132
129133 // 4. Clean up any temporary files (no temp files in this case)
130134 await this . cleanupDownloadedFiles ( ) ;
0 commit comments