SpaceAI is built in python using
- FastAPI - for the API
- LangChain - Language model
- telegram api - for the chatbot
- FAISS - for the vector database
- Create openai account and create an api key
- clone the repo
- Create
ops/.envand update the variables specified inops/.env.example
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
dataat the root and upload pdf files to/datafolder - Run
python core/ingest.py- Create file
role.jsonin/datafolder 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.pyfor testing the bot