Signed-off-by: chensuyue <suyue.chen@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
36 lines
1007 B
YAML
36 lines
1007 B
YAML
|
|
# Copyright (C) 2024 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
services:
|
|
qdrant-vector-db:
|
|
image: qdrant/qdrant:v1.9.0
|
|
container_name: qdrant-vector-db
|
|
ports:
|
|
- "6333:6333"
|
|
- "6334:6334"
|
|
qna-rag-qdrant-server:
|
|
build:
|
|
args:
|
|
https_proxy: ${https_proxy}
|
|
http_proxy: ${http_proxy}
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
image: intel/gen-ai-examples:qna-rag-qdrant-server
|
|
container_name: qna-rag-qdrant-server
|
|
environment:
|
|
- https_proxy=${https_proxy}
|
|
- HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
|
|
- "EMBED_MODEL=BAAI/bge-base-en-v1.5"
|
|
- "VECTOR_DATABASE=QDRANT"
|
|
- "TGI_LLM_ENDPOINT=http://localhost:8080"
|
|
# "TEI_ENDPOINT="http://xxx.xxx.xxx.xxx:9090" - To use a custom TEI endpoint
|
|
ulimits:
|
|
memlock:
|
|
soft: -1 # Set memlock to unlimited (no soft or hard limit)
|
|
hard: -1
|
|
volumes:
|
|
- ../qdrant:/ws
|
|
- ../test:/test
|
|
network_mode: "host"
|