Нема описа

galo c1541368c1 added rag sys пре 11 месеци
app f61cedf0ca added rag sys пре 11 месеци
Dockerfile f61cedf0ca added rag sys пре 11 месеци
README.md c1541368c1 added rag sys пре 11 месеци
requirements.txt f61cedf0ca added rag sys пре 11 месеци

README.md

Docker de chat usando LangChain e FastAPI

ultiliza Ollama e Mistral, requer recursos para a LLM local

Prequisitos

  • Git
  • Docker

Setup e Installation

  1. git clone https://github.com/Galomortal47/LangChain.git
    
  2. cd LangChain
    
  3. docker build -t chat-api . && docker run -p 8000:8000 --env-file .env chat-api
    
  4. curl -X POST http://localhost:8000/chat/?session_id=test_session -H "Content-Type: application/json" -d "{\"message\": \"Qual a capital da França?\"}"
    
    ou
    
    curl -X POST "http://localhost:8000/ask/?session_id=test_session&question=Qual%20a%20capital%20da%20Fran%C3%A7a%3F" -F "file=@E:/test.txt"