Skip to content

Commit 3b5f989

Browse files
committed
dont init twice
1 parent 0edacec commit 3b5f989

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

server/services/openai.js

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class OpenAiService {
5353
}
5454

5555
const docs = await loader.load();
56-
this.vectorStore = await HNSWLib.fromDocuments(docs, new OpenAIEmbeddings());
5756

5857
const baseCompressor = LLMChainExtractor.fromLLM(this.model);
5958
this.vectorStore = await HNSWLib.fromDocuments(docs, new OpenAIEmbeddings());

0 commit comments

Comments
 (0)