Skip to content

Commit 54618c2

Browse files
authored
Merge pull request #8 from golivecosmos/fix-vector-db
dont init vector db twice
2 parents 0edacec + 3b5f989 commit 54618c2

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)