SpaceAI is a front desk AI for TinkerSpace. You can ask questions about Tinkerhub and TinkerSpace to this chatbot
You can ask questions like:
- What is Tinkerhub?
- What is TinkerSpace?
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/.env
and 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
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