Nenhuma descrição

tiago.cipriano 2e0a809c52 docs: atualiza doc 1 dia atrás
.dockerignore 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás
.gitignore 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás
.tool-versions 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás
Dockerfile 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás
README.md 2e0a809c52 docs: atualiza doc 1 dia atrás
bun.lock 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás
index.ts 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás
mcp-manager.ts 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás
ollama.ts 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás
orquestrador.ts 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás
package.json 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás
rag.ts 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás
tsconfig.json 4eca5b389a feat: create api to use mcps and rags with ollama 1 dia atrás

README.md

api-chatbot-academia

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.3.6. Bun is a fast all-in-one JavaScript runtime.

curl -X POST http://localhost:3402/api/embeddings \
  -H "Content-Type: application/json" \
  -d '{"prompt": "on docker?", "topK": 3, "limiarSimilaridade": 0.5}'
curl -X POST http://localhost:3401 -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "buscar_exercicios_por_grupo",
    "arguments": {"grupo_muscular": "Pernas"}
  }
}'
curl -X POST http://localhost:3403/chat \
  -H "Content-Type: application/json" \
  -d '{
    "mensagem": "Quais exercícios de peito eu devo fazer?"
  }'
curl -X POST http://localhost:3000/chat \
  -H "Content-Type: application/json" \
  -d '{
    "mensagem": "qual é o exercio 3?"
  }'
curl -X POST http://localhost:3403/chat \
  -H "Content-Type: application/json" \
  -d '{
    "mensagem": "listar meus exercicios + dicas de hipertrofia"
  }'
curl -X POST http://localhost:3403/chat \
  -H "Content-Type: application/json" \
  -d '{
    "mensagem": "rodar docker"
  }'

docker image build --pull -t chatbot-server-academia . docker run --restart=always --name chatbot-server-academia --network host -d -e PORT=3403 chatbot-server-academia