Question about approach to a Q&A application

I want to create a bot to answer some common questions. As of now I have about 20-30 questions to feed to the bot, but it would grow over time… ← what would be the best cost effective, and probability technical way get this application working?

I am using Node.js in Nextjs which is a platform for REACT.js… yep… all JavaScript …

What are my options to get this done?

  1. Create prompts? I was using Langchain but I want to use just OpenAI and keep less dependencies … I havent seen any prompt examples with just OpenAI… and would this be a simple way to get this application done?

  2. Using a vector store? Maybe chroma? Would this lower the cost of using OpenAi?.. when would be more efrective to use a vector store?

  3. Using function calling?.. this seems interesting… would it lower to cost of using the OpenAi api over prompts? Or vector store?.. also, if I can keep all the information in my system i would like that better…

Any feedback is very much appreciated!!

Is this what you are trying to do? https://youtu.be/Ix9WIZpArm0?si=tKIb0RzffnU-3UPe

I am looking for something more like this video here… but using just openai instead of Langchain…

^^^ Now I got this working in Node.js… but trying to put it in Next.js hasn’t worked…

I just want a bot to be able to answer in natural language a simple Q&A document that I can feed to it…