Open realityinspector opened 1 year ago
const mySecret = process.env['OPENAI_API_KEY']
const store = await HNSWLib.fromTexts( docs, docs.map((_, i) => ({ id: i })), new OpenAIEmbeddings({ openAIApiKey: process.env.OPENAI_API_KEY }) )
const mySecret = process.env['OPENAI_API_KEY']
const store = await HNSWLib.fromTexts( docs, docs.map((_, i) => ({ id: i })), new OpenAIEmbeddings({ openAIApiKey: process.env.OPENAI_API_KEY }) )