https://github.com/dp6/rag-chatbot
Código do RAG desenvolvido para o post "Como criar um chatbot com seus próprios documentos usando LangChain e ChatGPT" do blog da DP6
https://github.com/dp6/rag-chatbot
Last synced: 8 months ago
JSON representation
Código do RAG desenvolvido para o post "Como criar um chatbot com seus próprios documentos usando LangChain e ChatGPT" do blog da DP6
- Host: GitHub
- URL: https://github.com/dp6/rag-chatbot
- Owner: DP6
- License: mit
- Created: 2024-01-23T15:27:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T15:43:31.000Z (about 2 years ago)
- Last Synced: 2025-04-07T13:43:14.576Z (about 1 year ago)
- Language: Python
- Size: 15.6 KB
- Stars: 5
- Watchers: 6
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RAG Chatbot
Código do RAG desenvolvido para o post "Como criar um chatbot com seus próprios documentos usando LangChain e ChatGPT" do blog da DP6
## Como usar
Para usar o RAG, basta executar `python main.py` e conversar com o bot.
## Instalação
```bash
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install python-dotenv langchain langchain-openai openai milvus pymilvus unstructured tiktoken lark
```
## Configuração do ambiente
Criar arquivo `.env` com as seguintes variáveis:
```bash
OPENAI_API_KEY = ""
MILVUS_HOST = "localhost"
MILVUS_PORT = "19530"
```