Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1014 Bytes

README.md

File metadata and controls

35 lines (29 loc) · 1014 Bytes

Kalpana Women startup scheme bot

What is the tech stack?

SpaceAI is built in python using

  • FastAPI - for the API
  • LangChain - Language model
  • telegram api - for the chatbot
  • FAISS - for the vector database

Setup instructions

cp ops/.env.example ops/.env
  • Create a telegram bot and put the api key in ops/.env file
  • Install the dependencies using pip install -r requirements.txt
  • Create the folder data at the root and upload pdf files to /data folder
  • Run
python core/ingest.py
  • Create file role.json in /data folder and add the roles in the following format
{
   "admin": ["chat_id1", "chat_id2"],
}
  • Make changes to the code for your application
  • Run python tele_bot.py for testing the bot