https://github.com/lukefx/parlati
Q&A Chatbot per informazioni riguardanti il Ticino
https://github.com/lukefx/parlati
chatgpt langchain langchain-python llm telegram-bot
Last synced: 2 months ago
JSON representation
Q&A Chatbot per informazioni riguardanti il Ticino
- Host: GitHub
- URL: https://github.com/lukefx/parlati
- Owner: lukefx
- Created: 2023-06-17T07:57:40.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-17T08:00:21.000Z (about 3 years ago)
- Last Synced: 2025-06-01T04:02:37.273Z (about 1 year ago)
- Topics: chatgpt, langchain, langchain-python, llm, telegram-bot
- Language: Python
- Homepage:
- Size: 43 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ParlaTI
Chatbot based on Knowledge base from ti.ch.
## Setup
```
poetry shell
poetry install
```
## Crawl data
This will run scrapy and fetch the data, that will be converted and saved as Markdown.
```
python -m scrapy runspider crawler.py
```
## Generate embeddings
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
```
## Test your data
Modify the file as you wish, just test your data with:
```
python query.py
```
## Run the bot
This will run your telegram bot. Be sure to have a valid telegram token.
```
python bot.py
```