Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates #6

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added examples for docker-compose and config.
Factorization committed Aug 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit f253a868052942ef5d485edcf4fbf3425b5ffa30
27 changes: 27 additions & 0 deletions docker_compose_example/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
services:
pai:
image: paiassistant-pai:latest
container_name: faq1
ports:
- 4000:4000
volumes:
- llama_index:/tmp/llama_index
- tts_model:/root/.local/share/tts
- huggingface_model:/root/.cache/huggingface
- /home/ubuntu/index:/pai/api/index
- /home/ubuntu/data:/pai/api/data
- /home/ubuntu/models:/pai/api/models
- /home/ubuntu/config/config.ini:/pai/api/config.ini
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart: unless-stopped

volumes:
llama_index:
tts_model:
huggingface_model:
22 changes: 22 additions & 0 deletions docker_compose_example/example_config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[index]
src_data_dir = data/kwaai
basic_idx_dir = index/kwaai/basicindex
sent_win_idx_dir = index/kwaai/sentenceindex
auto_mrg_idx_dir = index/kwaai/automergeindex
useopenai=false
modelname=gpt-3.5-turbo
local_modelname=openchat_3.5.Q4_K_M.gguf
embedmodel=local:BAAI/bge-large-en-v1.5

[api]
host=0.0.0.0
port=7860
sslcert=server.cert
sslkey=server.key
indextype=automerge
useopenai=false
ttsengine=coqui
loglevel=ERROR
openai_modelname=gpt-3.5-turbo
local_modelname=openchat_3.5.Q4_K_M.gguf
embedmodel=local:BAAI/bge-large-en-v1.5