Chatbot based on Knowledge base from ti.ch.
poetry shell
poetry install
This will run scrapy and fetch the data, that will be converted and saved as Markdown.
python -m scrapy runspider crawler.py
This ingest script will fetch all the documents in documents
folder and compute the embeddings.
Embeddings will be store in ChromaDB and persisted in the db
folder.
python ingest.py
Modify the file as you wish, just test your data with:
python query.py
This will run your telegram bot. Be sure to have a valid telegram token.
python bot.py