Przeglądaj źródła

add debug looger

Shun Miyazawa 1 rok temu
rodzic
commit
8be3e4f543

+ 1 - 0
apps/app/src/features/openai/server/services/openai.ts

@@ -408,6 +408,7 @@ class OpenaiService implements IOpenaiService {
       objectMode: true,
       objectMode: true,
       async transform(chunk: HydratedDocument<PageDocument>[], encoding, callback) {
       async transform(chunk: HydratedDocument<PageDocument>[], encoding, callback) {
         try {
         try {
+          logger.debug('Search results of page paths', chunk.map(page => page.path));
           await createVectorStoreFile(vectorStoreRelation, chunk);
           await createVectorStoreFile(vectorStoreRelation, chunk);
           this.push(chunk);
           this.push(chunk);
           callback();
           callback();