Skip to content

Latest commit

 

History

History
37 lines (35 loc) · 813 Bytes

File metadata and controls

37 lines (35 loc) · 813 Bytes

RAG-Stack

Using docker deploy ollama and litellm for my personal RAG.

1. Set up

1.1 Install docker, nvidia container toolkit
1.2 Copy the .env.example to .env and change it.

cp .env.example .env

1.3 Start container

docker compose up -d

1.4 Downloa Qwen

docker exec -it ollama ollama pull qwen3:14b

1.5 TEST Ollama

curl http://localhost:11434/api/generate -d '{
  "model": "qwen3:14b",
  "prompt": "請用繁體中文介紹RAG"
}'

1.6 TEST LiteLLM API

curl http://localhost:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-local-123456" \
  -d '{
    "model": "qwen3-local",
    "messages": [
      {"role": "user", "content": "請用繁體中文介紹RAG"}
    ]
  }'