Skip to content

Commit

Permalink
fix image path
Browse files Browse the repository at this point in the history
Signed-off-by: chensuyue <[email protected]>
  • Loading branch information
chensuyue committed Sep 10, 2024
1 parent d2913e1 commit e1d628f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

DocRetriever are the most widely adopted use case for leveraging the different methodologies to match user query against a set of free-text records. DocRetriever is essential to RAG system, which bridges the knowledge gap by dynamically fetching relevant information from external sources, ensuring that responses generated remain factual and current. The core of this architecture are vector databases, which are instrumental in enabling efficient and semantic retrieval of information. These databases store data as vectors, allowing RAG to swiftly access the most pertinent documents or data points based on semantic similarity.

## 1. Build Images for necessary microservices. (This step will not needed after docker image released)
## 1. Build Images for necessary microservices. (Optional after docker image release)

- Embedding TEI Image

Expand Down Expand Up @@ -35,7 +35,7 @@ DocRetriever are the most widely adopted use case for leveraging the different m
```bash
cd ..
git clone https://github.com/opea-project/GenAIExamples.git
cd GenAIExamples/DocIndexRetriever/docker
cd GenAIExamples/DocIndexRetriever
docker build --no-cache -t opea/doc-index-retriever:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f ./Dockerfile .
```

Expand All @@ -58,12 +58,12 @@ export RERANK_SERVICE_HOST_IP=${host_ip}
export LLM_SERVICE_HOST_IP=${host_ip}
export BACKEND_SERVICE_ENDPOINT="http://${host_ip}:8000/v1/retrievaltool"
export DATAPREP_SERVICE_ENDPOINT="http://${host_ip}:6007/v1/dataprep"
export llm_hardware='xeon' #xeon, xpu, gaudi
cd GenAIExamples/DocIndexRetriever/docker/${llm_hardware}/
docker compose -f docker-compose.yaml up -d
export llm_hardware='cpu/xeon' #cpu/xeon, xpu, hpu/gaudi
cd GenAIExamples/DocIndexRetriever/intel/${llm_hardware}/
docker compose -f compose.yaml up -d
```

## 3. Validation
## 4. Validation

Add Knowledge Base via HTTP Links:

Expand All @@ -87,7 +87,7 @@ curl http://${host_ip}:8889/v1/retrievaltool -X POST -H "Content-Type: applicati
{"id":"354e62c703caac8c547b3061433ec5e8","reranked_docs":[{"id":"06d5a5cefc06cf9a9e0b5fa74a9f233c","text":"Close SearchsearchMenu WikiNewsCommunity Daysx-twitter linkedin github searchStreamlining implementation of enterprise-grade Generative AIEfficiently integrate secure, performant, and cost-effective Generative AI workflows into business value.TODAYOPEA..."}],"initial_query":"Explain the OPEA project?"}
```

## 4. Trouble shooting
## 5. Trouble shooting

1. check all containers are alive

Expand Down
8 changes: 4 additions & 4 deletions DocIndexRetriever/docker_image_build/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ services:
embedding-tei:
build:
context: GenAIComps
dockerfile: comps/embeddings/langchain/docker/Dockerfile
dockerfile: comps/embeddings/tei/langchain/Dockerfile
extends: doc-index-retriever
image: ${REGISTRY:-opea}/embedding-tei:${TAG:-latest}
retriever-redis:
build:
context: GenAIComps
dockerfile: comps/retrievers/langchain/redis/docker/Dockerfile
dockerfile: comps/retrievers/redis/langchain/Dockerfile
extends: chatqna
image: ${REGISTRY:-opea}/retriever-redis:${TAG:-latest}
reranking-tei:
build:
context: GenAIComps
dockerfile: comps/reranks/tei/docker/Dockerfile
dockerfile: comps/reranks/tei/Dockerfile
extends: doc-index-retriever
image: ${REGISTRY:-opea}/reranking-tei:${TAG:-latest}
dataprep-on-ray-redis:
build:
context: GenAIComps
dockerfile: comps/dataprep/redis/langchain_ray/docker/Dockerfile
dockerfile: comps/dataprep/redis/langchain_ray/Dockerfile
extends: doc-index-retriever
image: ${REGISTRY:-opea}/dataprep-on-ray-redis:${TAG:-latest}
2 changes: 1 addition & 1 deletion VisualQnA/docker_image_build/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ services:
nginx:
build:
context: GenAIComps
dockerfile: comps/nginx/docker/Dockerfile
dockerfile: comps/nginx/Dockerfile
extends: visualqna
image: ${REGISTRY:-opea}/nginx:${TAG:-latest}

0 comments on commit e1d628f

Please sign in to comment.