IroncladDev / LangChain.js-LLM-Template

This is a LangChain LLM template that allows you to train your own custom AI LLM.
318 stars 52 forks source link

initializeStore.js needs const to run on replit #4

Open realityinspector opened 1 year ago

realityinspector commented 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 }) )