Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 20 days 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 (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-17T08:00:21.000Z (over 1 year ago)
- Last Synced: 2024-11-08T09:51:14.448Z (2 months 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
```