QnA bot starter is telegram bot using gpt, langchain and faiss to answer a question from the documentation Experimental project.
$ npm ci
First, set envs. You can use .env.example file as example
Second, you must have a vector store. Default vector storage in "vector-store" folder. It filled with example documentation.
You can use it or remove it and create your own vector store by running npm run vector-store
. See scripts section
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
create vector store using faiss
- Put docs inside src/scripts/new-docs folder
- run
npm run vector-store
OPENAI_API_KEY
- openai api key
TG_API
- telegram bot token