-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzerops.yml
More file actions
66 lines (63 loc) · 1.94 KB
/
Copy pathzerops.yml
File metadata and controls
66 lines (63 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
zerops:
- setup: api
build:
base: python@3.11
deployFiles: ./api/~
addToRunPrepare:
- ./api/requirements.txt
run:
base: python@3.11
envVariables:
QDRANT_URL: ${qdrant_connectionString}
QDRANT_API_KEY: ${qdrant_apiKey}
ports:
- port: 8000
httpSupport: true
prepareCommands:
- sudo uv pip install --system -r ./api/requirements.txt
initCommands:
- |
zsc execOnce qdrant-init -- curl -X PUT \
"${QDRANT_URL}/collections/documents" \
-H "api-key: ${QDRANT_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"vectors": {
"size": 384,
"distance": "Cosine"
}
}'
start: gunicorn main:app --bind 0.0.0.0:8000 --workers ${WORKERS:-1} --worker-class uvicorn.workers.UvicornWorker
healthCheck:
httpGet:
port: 8000
path: /health
- setup: processor
build:
base: python@3.11
deployFiles:
- ./processor/~
addToRunPrepare:
- ./processor/requirements.txt
run:
os: ubuntu
base: python@3.11
prepareCommands:
- echo "System info:" && uname -a && python3 --version && pip --version
- sudo apt-get update && sudo apt-get install -y build-essential libmagic1
- sudo uv pip install --system -r ./processor/requirements.txt
- sudo uv pip install --system torch --index-url https://download.pytorch.org/whl/cpu --upgrade
start: python llm_processor.py
- setup: bot
build:
base: python@3.11
deployFiles: ./discord_bot/~
addToRunPrepare:
- ./discord_bot/requirements.txt
run:
base: python@3.11
prepareCommands:
- sudo uv pip install --system -r ./discord_bot/requirements.txt
envVariables:
API_BASE_URL: http://api:8000
start: python bot.py