chunk_id stringlengths 36 36 | source stringclasses 35
values | source_url stringlengths 0 290 | upstream_license stringclasses 1
value | document_id stringlengths 36 36 | chunk_index int64 0 324k | retrieved_at stringclasses 2
values | chunker_version stringclasses 4
values | content_hash stringlengths 15 64 | content stringlengths 50 44.7k | namespace stringclasses 9
values | source_name stringclasses 35
values | raw_text stringlengths 50 44.7k | cleaned_text stringlengths 50 44.7k | tags stringclasses 49
values | collection_name stringclasses 11
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4dd2be32-b796-4cc7-840f-bc4469d886a6 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 6 | opea-semantic-v1 | 02abac5a56789530 | and generate a [user access token](https://huggingface.co/docs/transformers.js/en/guides/private#step-1-generating-a-user-access-token). The [Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct) model does not need special access, but the token can be used with other models requiring access... | ai_ref_knowledge | OPEA Documentation | and generate a [user access token](https://huggingface.co/docs/transformers.js/en/guides/private#step-1-generating-a-user-access-token). The [Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct) model does not need special access, but the token can be used with other models requiring access... | and generate a [user access token](https://huggingface.co/docs/transformers.js/en/guides/private#step-1-generating-a-user-access-token). The [Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct) model does not need special access, but the token can be used with other models requiring access... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
650941f2-70b6-4b9f-a7f9-fd449c2a80e7 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 0 | opea-semantic-v1 | 136e66647f8f264c | # Single node on-prem deployment on Xeon
This section covers single-node on-prem deployment of the CodeGen example. It will show how to deploy an end-to-end CodeGen solution with the `Qwen2.5-Coder-7B-Instruct` model running on Intel® Xeon® Scalable processors. To quickly learn about OPEA and set up the required hardwa... | ai_ref_knowledge | OPEA Documentation | # Single node on-prem deployment on Xeon
This section covers single-node on-prem deployment of the CodeGen example. It will show how to deploy an end-to-end CodeGen solution with the `Qwen2.5-Coder-7B-Instruct` model running on Intel® Xeon® Scalable processors. To quickly learn about OPEA and set up the required hardwa... | # Single node on-prem deployment on Xeon
This section covers single-node on-prem deployment of the CodeGen example. It will show how to deploy an end-to-end CodeGen solution with the `Qwen2.5-Coder-7B-Instruct` model running on Intel® Xeon® Scalable processors. To quickly learn about OPEA and set up the required hardwa... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
78f7d241-c9f5-4e97-9de7-4055339722a5 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 13 | opea-semantic-v1 | b428f88c7431e665 | Run this command to see this info: ```bash docker ps -a
Sample output:
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0040b340a392 opea/codegen-gradio-ui:latest "python codegen_ui_g…" 4 minutes ago Up 3 minutes 0.0.0.0:5173->5173/tcp, [::]:5173->5173/tcp codegen-xeon-ui-server
3d2c7deacf5b opea/codegen:l... | ai_ref_knowledge | OPEA Documentation | Run this command to see this info: ```bash docker ps -a
Sample output:
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0040b340a392 opea/codegen-gradio-ui:latest "python codegen_ui_g…" 4 minutes ago Up 3 minutes 0.0.0.0:5173->5173/tcp, [::]:5173->5173/tcp codegen-xeon-ui-server
3d2c7deacf5b opea/codegen:l... | Run this command to see this info: ```bash docker ps -a
Sample output:
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0040b340a392 opea/codegen-gradio-ui:latest "python codegen_ui_g…" 4 minutes ago Up 3 minutes 0.0.0.0:5173->5173/tcp, [::]:5173->5173/tcp codegen-xeon-ui-server
3d2c7deacf5b opea/codegen:l... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
7ffe4024-019f-4a2b-8fc2-a9883d0260a3 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 10 | opea-semantic-v1 | c71bdb4aaed6d78e | >**Note**: On Xeon, it is recommended to use the 7B parameter model `Qwen/Qwen2.5-Coder-7B-Instruct` instead of the 32B parameter model.
To run the UI on a web browser on a laptop, modify `BACKEND_SERVICE_ENDPOINT` to use `localhost` or `127.0.0.1` instead of `host_ip` inside `set_env.sh` for the backend to properly re... | ai_ref_knowledge | OPEA Documentation | >**Note**: On Xeon, it is recommended to use the 7B parameter model `Qwen/Qwen2.5-Coder-7B-Instruct` instead of the 32B parameter model.
To run the UI on a web browser on a laptop, modify `BACKEND_SERVICE_ENDPOINT` to use `localhost` or `127.0.0.1` instead of `host_ip` inside `set_env.sh` for the backend to properly re... | >**Note**: On Xeon, it is recommended to use the 7B parameter model `Qwen/Qwen2.5-Coder-7B-Instruct` instead of the 32B parameter model.
To run the UI on a web browser on a laptop, modify `BACKEND_SERVICE_ENDPOINT` to use `localhost` or `127.0.0.1` instead of `host_ip` inside `set_env.sh` for the backend to properly re... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
94821fce-b261-4e50-af6a-84ff22e05ffb | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 7 | opea-semantic-v1 | b85a73c5fb006a72 | associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file.
|Use Case Components | Tools | Model | Service Type |
|---------------- |--------------|-----------------------------|-------|
|LLM | vLLM, TGI | Qwen/Qwen... | ai_ref_knowledge | OPEA Documentation | associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file.
|Use Case Components | Tools | Model | Service Type |
|---------------- |--------------|-----------------------------|-------|
|LLM | vLLM, TGI | Qwen/Qwen... | associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file.
|Use Case Components | Tools | Model | Service Type |
|---------------- |--------------|-----------------------------|-------|
|LLM | vLLM, TGI | Qwen/Qwen... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
94bcf8ad-14f4-44cf-80b4-e3280b141efd | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 8 | opea-semantic-v1 | b6bd4936329b5301 | Model | Service Type | |---------------- |--------------|-----------------------------|-------| |LLM | vLLM, TGI | Qwen/Qwen2.5-Coder-7B-Instruct | OPEA Microservice | |UI | | NA | Gateway Service |
Set the necessary environment variables to set up the use case. To swap out models, modify `set_env.sh` before running it... | ai_ref_knowledge | OPEA Documentation | Model | Service Type | |---------------- |--------------|-----------------------------|-------| |LLM | vLLM, TGI | Qwen/Qwen2.5-Coder-7B-Instruct | OPEA Microservice | |UI | | NA | Gateway Service |
Set the necessary environment variables to set up the use case. To swap out models, modify `set_env.sh` before running it... | Model | Service Type | |---------------- |--------------|-----------------------------|-------| |LLM | vLLM, TGI | Qwen/Qwen2.5-Coder-7B-Instruct | OPEA Microservice | |UI | | NA | Gateway Service |
Set the necessary environment variables to set up the use case. To swap out models, modify `set_env.sh` before running it... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
9a231a44-d0b6-496e-8191-0223e29a2b38 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 1 | opea-semantic-v1 | f3b9f8d5aab1b391 | Intel® Xeon® Scalable processors. To quickly learn about OPEA and set up the required hardware and software, follow the instructions in the [Getting Started](../../../getting-started/README.md) section.
## Overview | ai_ref_knowledge | OPEA Documentation | Intel® Xeon® Scalable processors. To quickly learn about OPEA and set up the required hardware and software, follow the instructions in the [Getting Started](../../../getting-started/README.md) section.
## Overview | Intel® Xeon® Scalable processors. To quickly learn about OPEA and set up the required hardware and software, follow the instructions in the [Getting Started](../../../getting-started/README.md) section.
## Overview | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
a9414fd6-412f-42ee-b697-fbd6576a7cfa | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 9 | opea-semantic-v1 | f249ab59046177e5 | models, modify `set_env.sh` before running it. For example, the environment variable `LLM_MODEL_ID` can be changed to another model by specifying the HuggingFace model card ID.
>**Note**: On Xeon, it is recommended to use the 7B parameter model `Qwen/Qwen2.5-Coder-7B-Instruct` instead of the 32B parameter model. | ai_ref_knowledge | OPEA Documentation | models, modify `set_env.sh` before running it. For example, the environment variable `LLM_MODEL_ID` can be changed to another model by specifying the HuggingFace model card ID.
>**Note**: On Xeon, it is recommended to use the 7B parameter model `Qwen/Qwen2.5-Coder-7B-Instruct` instead of the 32B parameter model. | models, modify `set_env.sh` before running it. For example, the environment variable `LLM_MODEL_ID` can be changed to another model by specifying the HuggingFace model card ID.
>**Note**: On Xeon, it is recommended to use the 7B parameter model `Qwen/Qwen2.5-Coder-7B-Instruct` instead of the 32B parameter model. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
b79c8d34-d4bc-414f-bc79-255f2d71b17d | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 12 | opea-semantic-v1 | 5829381bd1349742 | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeGen/docker_compose/intel/cpu/xeon
Run `docker compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeGen. | ai_ref_knowledge | OPEA Documentation | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeGen/docker_compose/intel/cpu/xeon
Run `docker compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeGen. | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeGen/docker_compose/intel/cpu/xeon
Run `docker compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeGen. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
c5909801-19da-411b-b179-7090b436e594 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 2 | opea-semantic-v1 | 8c46d00e7c61c08b | The CodeGen use case uses a single microservice called LLM with model serving done with vLLM or TGI.
This solution is designed to demonstrate the use of the `Qwen2.5-Coder-7B-Instruct` model for code generation on Intel® Xeon® Scalable processors. The steps will involve setting up Docker containers, taking text input a... | ai_ref_knowledge | OPEA Documentation | The CodeGen use case uses a single microservice called LLM with model serving done with vLLM or TGI.
This solution is designed to demonstrate the use of the `Qwen2.5-Coder-7B-Instruct` model for code generation on Intel® Xeon® Scalable processors. The steps will involve setting up Docker containers, taking text input a... | The CodeGen use case uses a single microservice called LLM with model serving done with vLLM or TGI.
This solution is designed to demonstrate the use of the `Qwen2.5-Coder-7B-Instruct` model for code generation on Intel® Xeon® Scalable processors. The steps will involve setting up Docker containers, taking text input a... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
d0f16afb-6d3a-402c-b6d8-351cf172e288 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 11 | opea-semantic-v1 | 9f70141e33334b6a | on a laptop, modify `BACKEND_SERVICE_ENDPOINT` to use `localhost` or `127.0.0.1` instead of `host_ip` inside `set_env.sh` for the backend to properly receive data from the UI.
Run the `set_env.sh` script. ```bash
cd $WORKSPACE/GenAIExamples/CodeGen/docker_compose/
source ./set_env.sh | ai_ref_knowledge | OPEA Documentation | on a laptop, modify `BACKEND_SERVICE_ENDPOINT` to use `localhost` or `127.0.0.1` instead of `host_ip` inside `set_env.sh` for the backend to properly receive data from the UI.
Run the `set_env.sh` script. ```bash
cd $WORKSPACE/GenAIExamples/CodeGen/docker_compose/
source ./set_env.sh | on a laptop, modify `BACKEND_SERVICE_ENDPOINT` to use `localhost` or `127.0.0.1` instead of `host_ip` inside `set_env.sh` for the backend to properly receive data from the UI.
Run the `set_env.sh` script. ```bash
cd $WORKSPACE/GenAIExamples/CodeGen/docker_compose/
source ./set_env.sh | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
ddcc2e42-70a2-49ec-9f7a-b53d0113d858 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 3 | opea-semantic-v1 | 3577001cf206f409 | ## Prerequisites
To run the UI on a web browser external to the host machine such as a laptop, the following port(s) need to be forwarded when using SSH to login to the host machine:
- 7778: CodeGen megaservice port | ai_ref_knowledge | OPEA Documentation | ## Prerequisites
To run the UI on a web browser external to the host machine such as a laptop, the following port(s) need to be forwarded when using SSH to login to the host machine:
- 7778: CodeGen megaservice port | ## Prerequisites
To run the UI on a web browser external to the host machine such as a laptop, the following port(s) need to be forwarded when using SSH to login to the host machine:
- 7778: CodeGen megaservice port | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
f2703d40-7a22-41c0-b5f9-864e8c6871a4 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 15 | opea-semantic-v1 | c89acd4992148be3 | application. The API takes as input an operation request and updates the TODO list in place. If the request is invalid, raise an exception."}], "max_tokens":32}'
Here is sample output:
```bash
{"generated_text":"Start with a user story. We will add story tests later. In this case, we'll choose a story about adding a TO... | ai_ref_knowledge | OPEA Documentation | application. The API takes as input an operation request and updates the TODO list in place. If the request is invalid, raise an exception."}], "max_tokens":32}'
Here is sample output:
```bash
{"generated_text":"Start with a user story. We will add story tests later. In this case, we'll choose a story about adding a TO... | application. The API takes as input an operation request and updates the TODO list in place. If the request is invalid, raise an exception."}], "max_tokens":32}'
Here is sample output:
```bash
{"generated_text":"Start with a user story. We will add story tests later. In this case, we'll choose a story about adding a TO... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
f6896ca6-64f9-42fa-bbb5-4584b7c12c7b | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeGen/deploy/xeon.md | unknown | 26019973-4ab6-4e13-81bf-3f72f3760a7a | 17 | opea-semantic-v1 | 6e1c7d9d94e29c2b | list application. The API takes as input an operation request and updates the TODO list in place. If the request is invalid, raise an exception."}'
## Launch UI
### Gradio UI
To access the frontend, open the following URL in a web browser: http://${host_ip}:5173. By default, the UI runs on port 5173 internally. A diffe... | ai_ref_knowledge | OPEA Documentation | list application. The API takes as input an operation request and updates the TODO list in place. If the request is invalid, raise an exception."}'
## Launch UI
### Gradio UI
To access the frontend, open the following URL in a web browser: http://${host_ip}:5173. By default, the UI runs on port 5173 internally. A diffe... | list application. The API takes as input an operation request and updates the TODO list in place. If the request is invalid, raise an exception."}'
## Launch UI
### Gradio UI
To access the frontend, open the following URL in a web browser: http://${host_ip}:5173. By default, the UI runs on port 5173 internally. A diffe... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
03d75e97-39d2-4f62-9fec-a4390457c07a | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 31 | opea-semantic-v1 | ddfe6af84314be69 | service docker logs codetrans-gaudi-tgi-service | grep Connected # If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected
:::
:::: | ai_ref_knowledge | OPEA Documentation | service docker logs codetrans-gaudi-tgi-service | grep Connected # If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected
:::
:::: | service docker logs codetrans-gaudi-tgi-service | grep Connected # If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected
:::
:::: | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
040fb06f-156f-4ce3-81f0-38320b859711 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 18 | opea-semantic-v1 | 0c222325e3e67798 | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi
Run `docker compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeTrans. | ai_ref_knowledge | OPEA Documentation | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi
Run `docker compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeTrans. | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi
Run `docker compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeTrans. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
0819851d-0650-40b3-8f47-ecffb3f75492 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 32 | opea-semantic-v1 | 0e9ac7670c015977 | ::: ::::
Then try the `cURL` command to verify the vLLM or TGI service:
```bash
curl http://${host_ip}:8008/generate \
-X POST \
-d '{"inputs":" ### System: Please translate the following Golang codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {\n fmt.Print... | ai_ref_knowledge | OPEA Documentation | ::: ::::
Then try the `cURL` command to verify the vLLM or TGI service:
```bash
curl http://${host_ip}:8008/generate \
-X POST \
-d '{"inputs":" ### System: Please translate the following Golang codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {\n fmt.Print... | ::: ::::
Then try the `cURL` command to verify the vLLM or TGI service:
```bash
curl http://${host_ip}:8008/generate \
-X POST \
-d '{"inputs":" ### System: Please translate the following Golang codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {\n fmt.Print... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
11edd320-3a25-4ab2-97e7-51f4084f4059 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 14 | opea-semantic-v1 | ca059e605c182f86 | ## Use Case Setup
CodeTrans will utilize the following GenAIComps services and associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file. | ai_ref_knowledge | OPEA Documentation | ## Use Case Setup
CodeTrans will utilize the following GenAIComps services and associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file. | ## Use Case Setup
CodeTrans will utilize the following GenAIComps services and associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
12efe7b8-931e-469c-b5a7-1b4dfc3d14c9 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 6 | opea-semantic-v1 | 7b60939729643cb8 | defined in the `set_env.sh` for this example inside the `docker compose` folder. Specifically, for CodeTrans, append the following to the ssh command: ```bash -L 7777:localhost:7777
Set up a workspace and clone the [GenAIExamples](https://github.com/opea-project/GenAIExamples) GitHub repo. ```bash
export WORKSPACE=<Pat... | ai_ref_knowledge | OPEA Documentation | defined in the `set_env.sh` for this example inside the `docker compose` folder. Specifically, for CodeTrans, append the following to the ssh command: ```bash -L 7777:localhost:7777
Set up a workspace and clone the [GenAIExamples](https://github.com/opea-project/GenAIExamples) GitHub repo. ```bash
export WORKSPACE=<Pat... | defined in the `set_env.sh` for this example inside the `docker compose` folder. Specifically, for CodeTrans, append the following to the ssh command: ```bash -L 7777:localhost:7777
Set up a workspace and clone the [GenAIExamples](https://github.com/opea-project/GenAIExamples) GitHub repo. ```bash
export WORKSPACE=<Pat... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
145745a7-e397-40f9-b163-bf0e0de32b92 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 3 | opea-semantic-v1 | ceba8adf2ee2eb4b | as input, and generating code in another programming language. The solution is deployed with a basic UI accessible through both a direct port and Nginx.
## Prerequisites | ai_ref_knowledge | OPEA Documentation | as input, and generating code in another programming language. The solution is deployed with a basic UI accessible through both a direct port and Nginx.
## Prerequisites | as input, and generating code in another programming language. The solution is deployed with a basic UI accessible through both a direct port and Nginx.
## Prerequisites | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
1667432d-5205-4835-a29a-c1caf06fa3fd | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 21 | opea-semantic-v1 | b08e59ed44c487a0 | After running `docker compose`, check for warning messages for environment variables that are **NOT** set. Address them if needed.
ubuntu@gaudi-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi$ docker compose -f ./compose.yaml up -d | ai_ref_knowledge | OPEA Documentation | After running `docker compose`, check for warning messages for environment variables that are **NOT** set. Address them if needed.
ubuntu@gaudi-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi$ docker compose -f ./compose.yaml up -d | After running `docker compose`, check for warning messages for environment variables that are **NOT** set. Address them if needed.
ubuntu@gaudi-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi$ docker compose -f ./compose.yaml up -d | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
180be11e-5f4f-4b50-b4dd-04662b2314d4 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 35 | opea-semantic-v1 | 48f465694d1df52d | ### LLM Microservice
This service handles the core language model operations. Send a direct request to translate a simple "Hello World" program from Go to Python:
```bash
curl http://${host_ip}:9000/v1/chat/completions\
-X POST \
-d '{"query":" ### System: Please translate the following Golang codes into Python codes... | ai_ref_knowledge | OPEA Documentation | ### LLM Microservice
This service handles the core language model operations. Send a direct request to translate a simple "Hello World" program from Go to Python:
```bash
curl http://${host_ip}:9000/v1/chat/completions\
-X POST \
-d '{"query":" ### System: Please translate the following Golang codes into Python codes... | ### LLM Microservice
This service handles the core language model operations. Send a direct request to translate a simple "Hello World" program from Go to Python:
```bash
curl http://${host_ip}:9000/v1/chat/completions\
-X POST \
-d '{"query":" ### System: Please translate the following Golang codes into Python codes... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
19cd2b72-11a2-45df-9e00-8c0473138bd3 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 36 | opea-semantic-v1 | 3c1864d098b93fd2 | following Golang codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n '\'''\'''\'' ### Translated codes:"}' \ -H 'Content-Type: application/json'
Sample output:
```bash
data: {"id":"","choices":[{"finish_reason":"","index":0,... | ai_ref_knowledge | OPEA Documentation | following Golang codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n '\'''\'''\'' ### Translated codes:"}' \ -H 'Content-Type: application/json'
Sample output:
```bash
data: {"id":"","choices":[{"finish_reason":"","index":0,... | following Golang codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n '\'''\'''\'' ### Translated codes:"}' \ -H 'Content-Type: application/json'
Sample output:
```bash
data: {"id":"","choices":[{"finish_reason":"","index":0,... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
242bdf9b-022f-48c6-9dec-6839e1fd9758 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 20 | opea-semantic-v1 | e7910366b93835ba | ### Check Env Variables
After running `docker compose`, check for warning messages for environment variables that are **NOT** set. Address them if needed. | ai_ref_knowledge | OPEA Documentation | ### Check Env Variables
After running `docker compose`, check for warning messages for environment variables that are **NOT** set. Address them if needed. | ### Check Env Variables
After running `docker compose`, check for warning messages for environment variables that are **NOT** set. Address them if needed. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
29ad7cc2-fafa-4c59-a461-e91d1bb93fdf | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 42 | opea-semantic-v1 | c3815ca362e96e67 | ### Nginx Service
The Nginx service acts as a reverse proxy and load balancer for the application. To verify it is properly routing requests, send the same translation request through Nginx:
```bash
curl http://${host_ip}:${NGINX_PORT}/v1/codetrans \
-H "Content-Type: application/json" \
-d '{"language_from": "Golang... | ai_ref_knowledge | OPEA Documentation | ### Nginx Service
The Nginx service acts as a reverse proxy and load balancer for the application. To verify it is properly routing requests, send the same translation request through Nginx:
```bash
curl http://${host_ip}:${NGINX_PORT}/v1/codetrans \
-H "Content-Type: application/json" \
-d '{"language_from": "Golang... | ### Nginx Service
The Nginx service acts as a reverse proxy and load balancer for the application. To verify it is properly routing requests, send the same translation request through Nginx:
```bash
curl http://${host_ip}:${NGINX_PORT}/v1/codetrans \
-H "Content-Type: application/json" \
-d '{"language_from": "Golang... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
2f4d7242-b231-46c9-b11e-6a2ef2e5f6d0 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 5 | opea-semantic-v1 | 143bbf62c189b5b9 | a laptop, the following port(s) need to be port forwarded when using SSH to log in to the host machine: - 7777: CodeTrans megaservice port
This port is used for `BACKEND_SERVICE_ENDPOINT` defined in the `set_env.sh` for this example inside the `docker compose` folder. Specifically, for CodeTrans, append the following t... | ai_ref_knowledge | OPEA Documentation | a laptop, the following port(s) need to be port forwarded when using SSH to log in to the host machine: - 7777: CodeTrans megaservice port
This port is used for `BACKEND_SERVICE_ENDPOINT` defined in the `set_env.sh` for this example inside the `docker compose` folder. Specifically, for CodeTrans, append the following t... | a laptop, the following port(s) need to be port forwarded when using SSH to log in to the host machine: - 7777: CodeTrans megaservice port
This port is used for `BACKEND_SERVICE_ENDPOINT` defined in the `set_env.sh` for this example inside the `docker compose` folder. Specifically, for CodeTrans, append the following t... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
30271d55-3d00-4aa0-ba56-00eb02f40e7a | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 39 | opea-semantic-v1 | ea6bae800de51e9d | with a simple code translation request: ```bash curl http://${host_ip}:7777/v1/codetrans \ -H "Content-Type: application/json" \ -d '{"language_from": "Golang","language_to": "Python","source_code": "package main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n}"}'
Sample output:
```bash
data: {"id"... | ai_ref_knowledge | OPEA Documentation | with a simple code translation request: ```bash curl http://${host_ip}:7777/v1/codetrans \ -H "Content-Type: application/json" \ -d '{"language_from": "Golang","language_to": "Python","source_code": "package main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n}"}'
Sample output:
```bash
data: {"id"... | with a simple code translation request: ```bash curl http://${host_ip}:7777/v1/codetrans \ -H "Content-Type: application/json" \ -d '{"language_from": "Golang","language_to": "Python","source_code": "package main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n}"}'
Sample output:
```bash
data: {"id"... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
38601a74-4fde-46bd-8889-db4805cabf06 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 26 | opea-semantic-v1 | 078d7d040db69e75 | ### vLLM or TGI Service
During the initial startup, this service will take a few minutes to download the model files and complete the warm-up process. Once this is finished, the service will be ready for use. | ai_ref_knowledge | OPEA Documentation | ### vLLM or TGI Service
During the initial startup, this service will take a few minutes to download the model files and complete the warm-up process. Once this is finished, the service will be ready for use. | ### vLLM or TGI Service
During the initial startup, this service will take a few minutes to download the model files and complete the warm-up process. Once this is finished, the service will be ready for use. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
444922dc-5d1f-43b6-b0cd-8c8659742cb7 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 41 | opea-semantic-v1 | 1bce445d109bccff | a `text` field. Combining the `text` values in order will reconstruct the translated code. In this example, the final code is simply: ```bash print("Hello, World!")
### Nginx Service | ai_ref_knowledge | OPEA Documentation | a `text` field. Combining the `text` values in order will reconstruct the translated code. In this example, the final code is simply: ```bash print("Hello, World!")
### Nginx Service | a `text` field. Combining the `text` values in order will reconstruct the translated code. In this example, the final code is simply: ```bash print("Hello, World!")
### Nginx Service | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
48e6112c-f278-4a06-8982-7ec62635c2b2 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 27 | opea-semantic-v1 | 1e8767c1ef93c648 | take a few minutes to download the model files and complete the warm-up process. Once this is finished, the service will be ready for use.
Try the command below to check whether the LLM serving is ready. | ai_ref_knowledge | OPEA Documentation | take a few minutes to download the model files and complete the warm-up process. Once this is finished, the service will be ready for use.
Try the command below to check whether the LLM serving is ready. | take a few minutes to download the model files and complete the warm-up process. Once this is finished, the service will be ready for use.
Try the command below to check whether the LLM serving is ready. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
4bb3a66c-7e85-4696-9e95-e9735c6490db | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 0 | opea-semantic-v1 | 5e9fcf1b3f344762 | # Single node on-prem deployment on Gaudi AI Accelerator
This section covers single-node on-prem deployment of the CodeTrans example. It will show how to deploy an end-to-end code translation service with the `mistralai/Mistral-7B-Instruct-v0.3` model running on Intel® Gaudi® AI Accelerators. To quickly learn about OPE... | ai_ref_knowledge | OPEA Documentation | # Single node on-prem deployment on Gaudi AI Accelerator
This section covers single-node on-prem deployment of the CodeTrans example. It will show how to deploy an end-to-end code translation service with the `mistralai/Mistral-7B-Instruct-v0.3` model running on Intel® Gaudi® AI Accelerators. To quickly learn about OPE... | # Single node on-prem deployment on Gaudi AI Accelerator
This section covers single-node on-prem deployment of the CodeTrans example. It will show how to deploy an end-to-end code translation service with the `mistralai/Mistral-7B-Instruct-v0.3` model running on Intel® Gaudi® AI Accelerators. To quickly learn about OPE... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
53e434ac-7494-4d21-8343-aa310a74946d | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 33 | opea-semantic-v1 | ca2e7dbe8926f3d4 | codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n '\'''\'''\'' ### Translated codes:","parameters":{"max_new_tokens":17, "do_sample": true}}' \ -H 'Content-Type: application/json'
The vLLM or TGI service generates text for... | ai_ref_knowledge | OPEA Documentation | codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n '\'''\'''\'' ### Translated codes:","parameters":{"max_new_tokens":17, "do_sample": true}}' \ -H 'Content-Type: application/json'
The vLLM or TGI service generates text for... | codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n '\'''\'''\'' ### Translated codes:","parameters":{"max_new_tokens":17, "do_sample": true}}' \ -H 'Content-Type: application/json'
The vLLM or TGI service generates text for... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
623fde0a-f049-449c-b0bd-5027f49951cc | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 22 | opea-semantic-v1 | f2374a86d535ce51 | ubuntu@gaudi-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi$ docker compose -f ./compose.yaml up -d
WARN[0000] The "no_proxy" variable is not set. Defaulting to a blank string. WARN[0000] The "http_proxy" variable is not set. Defaulting to a blank string. | ai_ref_knowledge | OPEA Documentation | ubuntu@gaudi-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi$ docker compose -f ./compose.yaml up -d
WARN[0000] The "no_proxy" variable is not set. Defaulting to a blank string. WARN[0000] The "http_proxy" variable is not set. Defaulting to a blank string. | ubuntu@gaudi-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi$ docker compose -f ./compose.yaml up -d
WARN[0000] The "no_proxy" variable is not set. Defaulting to a blank string. WARN[0000] The "http_proxy" variable is not set. Defaulting to a blank string. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
6a8f2f36-5e0b-4795-b9a6-0231f01cf0e6 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 2 | opea-semantic-v1 | 091bec985c2e219d | The CodeTrans use case uses a single LLM microservice for code translation with model serving done on vLLM or TGI.
This solution is designed to demonstrate the use of the `Mistral-7B-Instruct-v0.3` model on the Intel® Gaudi® AI Accelerators to translate code between different programming languages. The steps will invol... | ai_ref_knowledge | OPEA Documentation | The CodeTrans use case uses a single LLM microservice for code translation with model serving done on vLLM or TGI.
This solution is designed to demonstrate the use of the `Mistral-7B-Instruct-v0.3` model on the Intel® Gaudi® AI Accelerators to translate code between different programming languages. The steps will invol... | The CodeTrans use case uses a single LLM microservice for code translation with model serving done on vLLM or TGI.
This solution is designed to demonstrate the use of the `Mistral-7B-Instruct-v0.3` model on the Intel® Gaudi® AI Accelerators to translate code between different programming languages. The steps will invol... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
714c4083-4ce5-475a-815e-4c38ae155e90 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 29 | opea-semantic-v1 | b089f6eb47796bdf | service docker logs codetrans-gaudi-vllm-service 2>&1 | grep complete # If the service is ready, you will get the response like below. INFO: Application startup complete.
:::
:::{tab-item} TGI | ai_ref_knowledge | OPEA Documentation | service docker logs codetrans-gaudi-vllm-service 2>&1 | grep complete # If the service is ready, you will get the response like below. INFO: Application startup complete.
:::
:::{tab-item} TGI | service docker logs codetrans-gaudi-vllm-service 2>&1 | grep complete # If the service is ready, you will get the response like below. INFO: Application startup complete.
:::
:::{tab-item} TGI | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
725a2cb0-1439-4157-8fe1-b88892504809 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 17 | opea-semantic-v1 | ea094ec71f151472 | on a laptop, modify `BACKEND_SERVICE_ENDPOINT` to use `localhost` or `127.0.0.1` instead of `host_ip` inside `set_env.sh` for the backend to properly receive data from the UI.
Run the `set_env.sh` script. ```bash
cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose
source ./set_env.sh | ai_ref_knowledge | OPEA Documentation | on a laptop, modify `BACKEND_SERVICE_ENDPOINT` to use `localhost` or `127.0.0.1` instead of `host_ip` inside `set_env.sh` for the backend to properly receive data from the UI.
Run the `set_env.sh` script. ```bash
cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose
source ./set_env.sh | on a laptop, modify `BACKEND_SERVICE_ENDPOINT` to use `localhost` or `127.0.0.1` instead of `host_ip` inside `set_env.sh` for the backend to properly receive data from the UI.
Run the `set_env.sh` script. ```bash
cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose
source ./set_env.sh | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
81a667aa-400c-4412-b7f1-03d85cc8741c | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 10 | opea-semantic-v1 | d3013d0984027a8e | Next, generate a [user access token](https://huggingface.co/docs/transformers.js/en/guides/private#step-1-generating-a-user-access-token).
Set the `HUGGINGFACEHUB_API_TOKEN` environment variable to the value of the Hugging Face token by executing the following command:
```bash
export HUGGINGFACEHUB_API_TOKEN="Your_Hugg... | ai_ref_knowledge | OPEA Documentation | Next, generate a [user access token](https://huggingface.co/docs/transformers.js/en/guides/private#step-1-generating-a-user-access-token).
Set the `HUGGINGFACEHUB_API_TOKEN` environment variable to the value of the Hugging Face token by executing the following command:
```bash
export HUGGINGFACEHUB_API_TOKEN="Your_Hugg... | Next, generate a [user access token](https://huggingface.co/docs/transformers.js/en/guides/private#step-1-generating-a-user-access-token).
Set the `HUGGINGFACEHUB_API_TOKEN` environment variable to the value of the Hugging Face token by executing the following command:
```bash
export HUGGINGFACEHUB_API_TOKEN="Your_Hugg... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
8b576c22-6fe9-4434-a883-04680452efb3 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 44 | opea-semantic-v1 | 982676c9af520a14 | The expected output is the same as the megaservice output.
Each of these endpoints should return a successful response with the translated Python code. If any of these tests fail, check the corresponding service logs for more details. | ai_ref_knowledge | OPEA Documentation | The expected output is the same as the megaservice output.
Each of these endpoints should return a successful response with the translated Python code. If any of these tests fail, check the corresponding service logs for more details. | The expected output is the same as the megaservice output.
Each of these endpoints should return a successful response with the translated Python code. If any of these tests fail, check the corresponding service logs for more details. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
933d9118-befa-42a4-9b33-bf3cff5df1a6 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 46 | opea-semantic-v1 | 7df1670063ffac79 | ### Basic UI
To access the frontend user interface (UI), the primary method is through the Nginx reverse proxy service. Open the following URL in a web browser: http://${host_ip}:${NGINX_PORT}. This provides a stable and secure access point to the UI. | ai_ref_knowledge | OPEA Documentation | ### Basic UI
To access the frontend user interface (UI), the primary method is through the Nginx reverse proxy service. Open the following URL in a web browser: http://${host_ip}:${NGINX_PORT}. This provides a stable and secure access point to the UI. | ### Basic UI
To access the frontend user interface (UI), the primary method is through the Nginx reverse proxy service. Open the following URL in a web browser: http://${host_ip}:${NGINX_PORT}. This provides a stable and secure access point to the UI. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
97d17daf-7660-4a1c-8b65-94b93148609f | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 48 | opea-semantic-v1 | 5223d242689c4cf6 | can be used to access the frontend by modifying the `FRONTEND_SERVICE_PORT` environment variable. For reference, the port mapping in the `compose.yaml` file is shown below:
```yaml
codetrans-gaudi-ui-server:
image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest}
container_name: codetrans-gaudi-ui-server
depends_on:
-... | ai_ref_knowledge | OPEA Documentation | can be used to access the frontend by modifying the `FRONTEND_SERVICE_PORT` environment variable. For reference, the port mapping in the `compose.yaml` file is shown below:
```yaml
codetrans-gaudi-ui-server:
image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest}
container_name: codetrans-gaudi-ui-server
depends_on:
-... | can be used to access the frontend by modifying the `FRONTEND_SERVICE_PORT` environment variable. For reference, the port mapping in the `compose.yaml` file is shown below:
```yaml
codetrans-gaudi-ui-server:
image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest}
container_name: codetrans-gaudi-ui-server
depends_on:
-... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
9c69d71b-f4a4-47da-94cf-b2f1dc17f436 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 24 | opea-semantic-v1 | a0cce9ea976c5699 | Run this command to see this info: ```bash docker ps -a
Sample output:
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ca0cfb3edce5 opea/nginx:latest "/docker-entrypoint.…" 8 minutes ago Up 6 minutes 0.0.0.0:80->80/tcp, [::]:80->80/tcp codetrans-gaudi-nginx-server
d7ef9da3f7db opea/codetrans-ui:latest "do... | ai_ref_knowledge | OPEA Documentation | Run this command to see this info: ```bash docker ps -a
Sample output:
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ca0cfb3edce5 opea/nginx:latest "/docker-entrypoint.…" 8 minutes ago Up 6 minutes 0.0.0.0:80->80/tcp, [::]:80->80/tcp codetrans-gaudi-nginx-server
d7ef9da3f7db opea/codetrans-ui:latest "do... | Run this command to see this info: ```bash docker ps -a
Sample output:
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ca0cfb3edce5 opea/nginx:latest "/docker-entrypoint.…" 8 minutes ago Up 6 minutes 0.0.0.0:80->80/tcp, [::]:80->80/tcp codetrans-gaudi-nginx-server
d7ef9da3f7db opea/codetrans-ui:latest "do... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
a4bea2e7-7ce6-4a46-981b-37783cd101de | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 37 | opea-semantic-v1 | b8055b067e62b6ea | data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"text":"\n"}],"created":1737123224,"model":"mistralai/Mistral-7B-Instruct-v0.3","object":"text_completion","system_fingerprint":"2.4.0-sha-0a655a0-intel-cpu","usage":null} data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"tex... | ai_ref_knowledge | OPEA Documentation | data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"text":"\n"}],"created":1737123224,"model":"mistralai/Mistral-7B-Instruct-v0.3","object":"text_completion","system_fingerprint":"2.4.0-sha-0a655a0-intel-cpu","usage":null} data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"tex... | data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"text":"\n"}],"created":1737123224,"model":"mistralai/Mistral-7B-Instruct-v0.3","object":"text_completion","system_fingerprint":"2.4.0-sha-0a655a0-intel-cpu","usage":null} data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"tex... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
a68cc5ac-b3f0-4fcf-8fb9-3ec38e8e34a4 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 12 | opea-semantic-v1 | 0f4ea9c29a7d24c8 | Set the `host_ip` environment variable to deploy the microservices on the endpoints enabled with ports: ```bash export host_ip=$(hostname -I | awk '{print $1}')
Set up a desired port for Nginx:
```bash
# Example: NGINX_PORT=80
export NGINX_PORT=${your_nginx_port} | ai_ref_knowledge | OPEA Documentation | Set the `host_ip` environment variable to deploy the microservices on the endpoints enabled with ports: ```bash export host_ip=$(hostname -I | awk '{print $1}')
Set up a desired port for Nginx:
```bash
# Example: NGINX_PORT=80
export NGINX_PORT=${your_nginx_port} | Set the `host_ip` environment variable to deploy the microservices on the endpoints enabled with ports: ```bash export host_ip=$(hostname -I | awk '{print $1}')
Set up a desired port for Nginx:
```bash
# Example: NGINX_PORT=80
export NGINX_PORT=${your_nginx_port} | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
ae45c0d3-5d41-4ba0-9211-fc034d63170e | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 11 | opea-semantic-v1 | d7b639d9e7083288 | Set the `HUGGINGFACEHUB_API_TOKEN` environment variable to the value of the Hugging Face token by executing the following command: ```bash export HUGGINGFACEHUB_API_TOKEN="Your_Huggingface_API_Token"
Set the `host_ip` environment variable to deploy the microservices on the endpoints enabled with ports:
```bash
export h... | ai_ref_knowledge | OPEA Documentation | Set the `HUGGINGFACEHUB_API_TOKEN` environment variable to the value of the Hugging Face token by executing the following command: ```bash export HUGGINGFACEHUB_API_TOKEN="Your_Huggingface_API_Token"
Set the `host_ip` environment variable to deploy the microservices on the endpoints enabled with ports:
```bash
export h... | Set the `HUGGINGFACEHUB_API_TOKEN` environment variable to the value of the Hugging Face token by executing the following command: ```bash export HUGGINGFACEHUB_API_TOKEN="Your_Huggingface_API_Token"
Set the `host_ip` environment variable to deploy the microservices on the endpoints enabled with ports:
```bash
export h... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
b6036ffb-257b-4a1b-b462-7bf8ca35bfa3 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 38 | opea-semantic-v1 | 2ad942a8d3822125 | ### CodeTrans MegaService
The CodeTrans megaservice orchestrates the entire translation process. Test it with a simple code translation request:
```bash
curl http://${host_ip}:7777/v1/codetrans \
-H "Content-Type: application/json" \
-d '{"language_from": "Golang","language_to": "Python","source_code": "package main\... | ai_ref_knowledge | OPEA Documentation | ### CodeTrans MegaService
The CodeTrans megaservice orchestrates the entire translation process. Test it with a simple code translation request:
```bash
curl http://${host_ip}:7777/v1/codetrans \
-H "Content-Type: application/json" \
-d '{"language_from": "Golang","language_to": "Python","source_code": "package main\... | ### CodeTrans MegaService
The CodeTrans megaservice orchestrates the entire translation process. Test it with a simple code translation request:
```bash
curl http://${host_ip}:7777/v1/codetrans \
-H "Content-Type: application/json" \
-d '{"language_from": "Golang","language_to": "Python","source_code": "package main\... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
b607b735-cdba-4aca-bc1c-790fb696afc3 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 9 | opea-semantic-v1 | c60f88971b855e63 | to `Mistral-7B-Instruct-v0.3` which is a gated model. To obtain access for using the model, visit the [model site](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) and click on `Agree and access repository`.
Next, generate a [user access token](https://huggingface.co/docs/transformers.js/en/guides/private#ste... | ai_ref_knowledge | OPEA Documentation | to `Mistral-7B-Instruct-v0.3` which is a gated model. To obtain access for using the model, visit the [model site](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) and click on `Agree and access repository`.
Next, generate a [user access token](https://huggingface.co/docs/transformers.js/en/guides/private#ste... | to `Mistral-7B-Instruct-v0.3` which is a gated model. To obtain access for using the model, visit the [model site](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) and click on `Agree and access repository`.
Next, generate a [user access token](https://huggingface.co/docs/transformers.js/en/guides/private#ste... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
ba97d264-14d7-474e-b1b6-c42fbf4e01d9 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 34 | opea-semantic-v1 | 64e24df4cea277b2 | The vLLM or TGI service generates text for the input prompt. Here is the expected result: ```bash {"generated_text":"'''Python\nprint(\"Hello, World!\")"}
### LLM Microservice | ai_ref_knowledge | OPEA Documentation | The vLLM or TGI service generates text for the input prompt. Here is the expected result: ```bash {"generated_text":"'''Python\nprint(\"Hello, World!\")"}
### LLM Microservice | The vLLM or TGI service generates text for the input prompt. Here is the expected result: ```bash {"generated_text":"'''Python\nprint(\"Hello, World!\")"}
### LLM Microservice | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
bc6708a2-a100-4ece-bf7a-f7baa4cd596a | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 50 | opea-semantic-v1 | 23c0772652a72e32 | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi
To stop and remove all the containers, use the commands below: | ai_ref_knowledge | OPEA Documentation | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi
To stop and remove all the containers, use the commands below: | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/hpu/gaudi
To stop and remove all the containers, use the commands below: | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
c1fdeded-0adf-4a55-85fb-05c80cc0597f | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 7 | opea-semantic-v1 | cef0472a6474cd04 | Set up a workspace and clone the [GenAIExamples](https://github.com/opea-project/GenAIExamples) GitHub repo. ```bash export WORKSPACE=<Path> cd $WORKSPACE git clone https://github.com/opea-project/GenAIExamples.git # GenAIExamples
**Optional** It is recommended to use a stable release version by setting `RELEASE_VERSIO... | ai_ref_knowledge | OPEA Documentation | Set up a workspace and clone the [GenAIExamples](https://github.com/opea-project/GenAIExamples) GitHub repo. ```bash export WORKSPACE=<Path> cd $WORKSPACE git clone https://github.com/opea-project/GenAIExamples.git # GenAIExamples
**Optional** It is recommended to use a stable release version by setting `RELEASE_VERSIO... | Set up a workspace and clone the [GenAIExamples](https://github.com/opea-project/GenAIExamples) GitHub repo. ```bash export WORKSPACE=<Path> cd $WORKSPACE git clone https://github.com/opea-project/GenAIExamples.git # GenAIExamples
**Optional** It is recommended to use a stable release version by setting `RELEASE_VERSIO... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
c2c152bb-71a5-4ea7-b9bc-d35ac855cd10 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 40 | opea-semantic-v1 | 140068fc5c70581a | data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"text":"(\""}],"created":1737121308,"model":"mistralai/Mistral-7B-Instruct-v0.3","object":"text_completion","system_fingerprint":"2.4.0-sha-0a655a0-intel-cpu","usage":null} data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"te... | ai_ref_knowledge | OPEA Documentation | data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"text":"(\""}],"created":1737121308,"model":"mistralai/Mistral-7B-Instruct-v0.3","object":"text_completion","system_fingerprint":"2.4.0-sha-0a655a0-intel-cpu","usage":null} data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"te... | data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"text":"(\""}],"created":1737121308,"model":"mistralai/Mistral-7B-Instruct-v0.3","object":"text_completion","system_fingerprint":"2.4.0-sha-0a655a0-intel-cpu","usage":null} data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"te... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
c6cfc3d4-f083-490a-8449-df19bc9c6b16 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 1 | opea-semantic-v1 | 1216e48935037af2 | ## Overview
The CodeTrans use case uses a single LLM microservice for code translation with model serving done on vLLM or TGI. | ai_ref_knowledge | OPEA Documentation | ## Overview
The CodeTrans use case uses a single LLM microservice for code translation with model serving done on vLLM or TGI. | ## Overview
The CodeTrans use case uses a single LLM microservice for code translation with model serving done on vLLM or TGI. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
ccc56381-dd4b-4080-a829-d0a96d557ab2 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 23 | opea-semantic-v1 | 11cdbfee198ca826 | WARN[0000] The "no_proxy" variable is not set. Defaulting to a blank string. WARN[0000] The "http_proxy" variable is not set. Defaulting to a blank string.
Check if all the containers launched via `docker compose` are running i.e. each container's `STATUS` is `Up` and in some cases `Healthy`. | ai_ref_knowledge | OPEA Documentation | WARN[0000] The "no_proxy" variable is not set. Defaulting to a blank string. WARN[0000] The "http_proxy" variable is not set. Defaulting to a blank string.
Check if all the containers launched via `docker compose` are running i.e. each container's `STATUS` is `Up` and in some cases `Healthy`. | WARN[0000] The "no_proxy" variable is not set. Defaulting to a blank string. WARN[0000] The "http_proxy" variable is not set. Defaulting to a blank string.
Check if all the containers launched via `docker compose` are running i.e. each container's `STATUS` is `Up` and in some cases `Healthy`. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
d5d10a20-c6ca-49a7-a8b7-f4ec387bbf3c | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 25 | opea-semantic-v1 | de5830ac2f061037 | entrypoint.sh" 8 minutes ago Up 6 minutes 0.0.0.0:9000->9000/tcp, [::]:9000->9000/tcp codetrans-gaudi-llm-server 450f74cb65a4 opea/vllm:latest "python3 -m vllm.ent…" 8 minutes ago Up 8 minutes (healthy) 0.0.0.0:8008->80/tcp, [::]:8008->80/tcp codetrans-gaudi-vllm-service
Each docker container's log can also be checked ... | ai_ref_knowledge | OPEA Documentation | entrypoint.sh" 8 minutes ago Up 6 minutes 0.0.0.0:9000->9000/tcp, [::]:9000->9000/tcp codetrans-gaudi-llm-server 450f74cb65a4 opea/vllm:latest "python3 -m vllm.ent…" 8 minutes ago Up 8 minutes (healthy) 0.0.0.0:8008->80/tcp, [::]:8008->80/tcp codetrans-gaudi-vllm-service
Each docker container's log can also be checked ... | entrypoint.sh" 8 minutes ago Up 6 minutes 0.0.0.0:9000->9000/tcp, [::]:9000->9000/tcp codetrans-gaudi-llm-server 450f74cb65a4 opea/vllm:latest "python3 -m vllm.ent…" 8 minutes ago Up 8 minutes (healthy) 0.0.0.0:8008->80/tcp, [::]:8008->80/tcp codetrans-gaudi-vllm-service
Each docker container's log can also be checked ... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
e4bce49d-bc53-4997-bf9d-7ab400ea57f8 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 19 | opea-semantic-v1 | 5d17358d770fa59d | compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeTrans.
::::{tab-set}
:::{tab-item} vllm | ai_ref_knowledge | OPEA Documentation | compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeTrans.
::::{tab-set}
:::{tab-item} vllm | compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeTrans.
::::{tab-set}
:::{tab-item} vllm | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
e57a4a06-cd2a-4229-b63a-8c9b9c22ca47 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 45 | opea-semantic-v1 | b535a6a75e3ccdf5 | endpoints should return a successful response with the translated Python code. If any of these tests fail, check the corresponding service logs for more details.
## Launch UI | ai_ref_knowledge | OPEA Documentation | endpoints should return a successful response with the translated Python code. If any of these tests fail, check the corresponding service logs for more details.
## Launch UI | endpoints should return a successful response with the translated Python code. If any of these tests fail, check the corresponding service logs for more details.
## Launch UI | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
e7c7bc76-89b0-4126-bf0d-5ff0956f10bc | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 30 | opea-semantic-v1 | 7c47406bfcded540 | ::: :::{tab-item} TGI
```bash
# TGI service
docker logs codetrans-gaudi-tgi-service | grep Connected
# If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected | ai_ref_knowledge | OPEA Documentation | ::: :::{tab-item} TGI
```bash
# TGI service
docker logs codetrans-gaudi-tgi-service | grep Connected
# If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected | ::: :::{tab-item} TGI
```bash
# TGI service
docker logs codetrans-gaudi-tgi-service | grep Connected
# If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
e7f459ad-c6e1-418e-af31-cf1cabdba577 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 15 | opea-semantic-v1 | c7d6997c99606151 | associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file.
| Use Case Components | Tools | Model | Service Type |
|---------------------|---------------|--------------... | ai_ref_knowledge | OPEA Documentation | associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file.
| Use Case Components | Tools | Model | Service Type |
|---------------------|---------------|--------------... | associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file.
| Use Case Components | Tools | Model | Service Type |
|---------------------|---------------|--------------... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
eca3e466-4007-4716-8f41-ae1343354379 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 28 | opea-semantic-v1 | 870db3f1bb908d27 | ::::{tab-set} :::{tab-item} vllm
```bash
# vLLM service
docker logs codetrans-gaudi-vllm-service 2>&1 | grep complete
# If the service is ready, you will get the response like below. INFO: Application startup complete. | ai_ref_knowledge | OPEA Documentation | ::::{tab-set} :::{tab-item} vllm
```bash
# vLLM service
docker logs codetrans-gaudi-vllm-service 2>&1 | grep complete
# If the service is ready, you will get the response like below. INFO: Application startup complete. | ::::{tab-set} :::{tab-item} vllm
```bash
# vLLM service
docker logs codetrans-gaudi-vllm-service 2>&1 | grep complete
# If the service is ready, you will get the response like below. INFO: Application startup complete. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
ef486b7d-4b46-4dc0-a01f-b99e3d788a7d | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 13 | opea-semantic-v1 | fa2c40da99b80b56 | Set up a desired port for Nginx: ```bash # Example: NGINX_PORT=80 export NGINX_PORT=${your_nginx_port}
For machines behind a firewall, set up the proxy environment variables:
```bash
export no_proxy=${your_no_proxy},$host_ip
export http_proxy=${your_http_proxy}
export https_proxy=${your_http_proxy} | ai_ref_knowledge | OPEA Documentation | Set up a desired port for Nginx: ```bash # Example: NGINX_PORT=80 export NGINX_PORT=${your_nginx_port}
For machines behind a firewall, set up the proxy environment variables:
```bash
export no_proxy=${your_no_proxy},$host_ip
export http_proxy=${your_http_proxy}
export https_proxy=${your_http_proxy} | Set up a desired port for Nginx: ```bash # Example: NGINX_PORT=80 export NGINX_PORT=${your_nginx_port}
For machines behind a firewall, set up the proxy environment variables:
```bash
export no_proxy=${your_no_proxy},$host_ip
export http_proxy=${your_http_proxy}
export https_proxy=${your_http_proxy} | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
f52c6671-de76-4718-b8ac-0f5a86a52c6e | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 43 | opea-semantic-v1 | 91b2ff3acf69041e | the same translation request through Nginx: ```bash curl http://${host_ip}:${NGINX_PORT}/v1/codetrans \ -H "Content-Type: application/json" \ -d '{"language_from": "Golang","language_to": "Python","source_code": "package main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n}"}'
The expected output i... | ai_ref_knowledge | OPEA Documentation | the same translation request through Nginx: ```bash curl http://${host_ip}:${NGINX_PORT}/v1/codetrans \ -H "Content-Type: application/json" \ -d '{"language_from": "Golang","language_to": "Python","source_code": "package main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n}"}'
The expected output i... | the same translation request through Nginx: ```bash curl http://${host_ip}:${NGINX_PORT}/v1/codetrans \ -H "Content-Type: application/json" \ -d '{"language_from": "Golang","language_to": "Python","source_code": "package main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n}"}'
The expected output i... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
f5fa67c0-6ce2-4112-bd32-1dd36c069277 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 8 | opea-semantic-v1 | db62b1c53756d9ee | with the latest updates will be used. ```bash export RELEASE_VERSION=<Release_Version> # Set desired release version - number only cd GenAIExamples git checkout tags/v${RELEASE_VERSION} cd ..
The example utilizes model weights from HuggingFace. Set up a [HuggingFace](https://huggingface.co/) account and apply for model... | ai_ref_knowledge | OPEA Documentation | with the latest updates will be used. ```bash export RELEASE_VERSION=<Release_Version> # Set desired release version - number only cd GenAIExamples git checkout tags/v${RELEASE_VERSION} cd ..
The example utilizes model weights from HuggingFace. Set up a [HuggingFace](https://huggingface.co/) account and apply for model... | with the latest updates will be used. ```bash export RELEASE_VERSION=<Release_Version> # Set desired release version - number only cd GenAIExamples git checkout tags/v${RELEASE_VERSION} cd ..
The example utilizes model weights from HuggingFace. Set up a [HuggingFace](https://huggingface.co/) account and apply for model... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
f88e2cd3-6a3a-41aa-a5ab-a30e42f3abc8 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 16 | opea-semantic-v1 | 0e6facfc25e6c1b0 | | mistralai/Mistral-7B-Instruct-v0.3 | OPEA Microservice | | UI | | NA | Gateway Service | | Ingress | Nginx | NA | Gateway Service |
Set the necessary environment variables to set up the use case. To swap out models, modify `set_env.sh` before running it. For example, the environment variable `LLM_MODEL_ID` can be cha... | ai_ref_knowledge | OPEA Documentation | | mistralai/Mistral-7B-Instruct-v0.3 | OPEA Microservice | | UI | | NA | Gateway Service | | Ingress | Nginx | NA | Gateway Service |
Set the necessary environment variables to set up the use case. To swap out models, modify `set_env.sh` before running it. For example, the environment variable `LLM_MODEL_ID` can be cha... | | mistralai/Mistral-7B-Instruct-v0.3 | OPEA Microservice | | UI | | NA | Gateway Service | | Ingress | Nginx | NA | Gateway Service |
Set the necessary environment variables to set up the use case. To swap out models, modify `set_env.sh` before running it. For example, the environment variable `LLM_MODEL_ID` can be cha... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
fafab908-320d-4f6d-ab91-534132a8746d | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 4 | opea-semantic-v1 | b3dd12537d9c7d6f | ## Prerequisites
To run the UI on a web browser external to the host machine such as a laptop, the following port(s) need to be port forwarded when using SSH to log in to the host machine:
- 7777: CodeTrans megaservice port | ai_ref_knowledge | OPEA Documentation | ## Prerequisites
To run the UI on a web browser external to the host machine such as a laptop, the following port(s) need to be port forwarded when using SSH to log in to the host machine:
- 7777: CodeTrans megaservice port | ## Prerequisites
To run the UI on a web browser external to the host machine such as a laptop, the following port(s) need to be port forwarded when using SSH to log in to the host machine:
- 7777: CodeTrans megaservice port | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
fbc40627-df6d-4505-bdb6-3b5b97fcecd3 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 47 | opea-semantic-v1 | 5fa7604da35da115 | the Nginx reverse proxy service. Open the following URL in a web browser: http://${host_ip}:${NGINX_PORT}. This provides a stable and secure access point to the UI.
Alternatively, the UI can be accessed directly using its internal port. This method bypasses the Nginx proxy and can be used for testing or troubleshooting... | ai_ref_knowledge | OPEA Documentation | the Nginx reverse proxy service. Open the following URL in a web browser: http://${host_ip}:${NGINX_PORT}. This provides a stable and secure access point to the UI.
Alternatively, the UI can be accessed directly using its internal port. This method bypasses the Nginx proxy and can be used for testing or troubleshooting... | the Nginx reverse proxy service. Open the following URL in a web browser: http://${host_ip}:${NGINX_PORT}. This provides a stable and secure access point to the UI.
Alternatively, the UI can be accessed directly using its internal port. This method bypasses the Nginx proxy and can be used for testing or troubleshooting... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
fea21ea1-9f55-4d9c-ac10-558410127c3f | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/gaudi.md | unknown | cfc8c77b-f301-4a2e-9717-c4f5d542b0bd | 49 | opea-semantic-v1 | e325cca0e39ea0f2 | ```yaml codetrans-gaudi-ui-server: image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest} container_name: codetrans-gaudi-ui-server depends_on: - codetrans-gaudi-backend-server ports: - "${FRONTEND_SERVICE_PORT:-5173}:5173"
After making this change, restart the containers for the change to take effect. | ai_ref_knowledge | OPEA Documentation | ```yaml codetrans-gaudi-ui-server: image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest} container_name: codetrans-gaudi-ui-server depends_on: - codetrans-gaudi-backend-server ports: - "${FRONTEND_SERVICE_PORT:-5173}:5173"
After making this change, restart the containers for the change to take effect. | ```yaml codetrans-gaudi-ui-server: image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest} container_name: codetrans-gaudi-ui-server depends_on: - codetrans-gaudi-backend-server ports: - "${FRONTEND_SERVICE_PORT:-5173}:5173"
After making this change, restart the containers for the change to take effect. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
09dfdecc-ec0e-47b0-866f-93a4beeb9f16 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 0 | opea-semantic-v1 | 3f95aba9229f91df | # Single node on-prem deployment on Xeon Scalable processors
This section covers single-node on-prem deployment of the CodeTrans example. It will show how to deploy an end-to-end code translation service with the `mistralai/Mistral-7B-Instruct-v0.3` model running on Intel® Xeon® Scalable processors. To quickly learn ab... | ai_ref_knowledge | OPEA Documentation | # Single node on-prem deployment on Xeon Scalable processors
This section covers single-node on-prem deployment of the CodeTrans example. It will show how to deploy an end-to-end code translation service with the `mistralai/Mistral-7B-Instruct-v0.3` model running on Intel® Xeon® Scalable processors. To quickly learn ab... | # Single node on-prem deployment on Xeon Scalable processors
This section covers single-node on-prem deployment of the CodeTrans example. It will show how to deploy an end-to-end code translation service with the `mistralai/Mistral-7B-Instruct-v0.3` model running on Intel® Xeon® Scalable processors. To quickly learn ab... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
13d860ca-6885-4127-aee2-5b5fa32e6a0d | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 14 | opea-semantic-v1 | 896fcc83a0a9b5f9 | ### CodeTrans Megaservice
The CodeTrans megaservice orchestrates the entire translation process. Test it with a simple code translation request:
```bash
curl http://${host_ip}:7777/v1/codetrans \
-H "Content-Type: application/json" \
-d '{"language_from": "Golang","language_to": "Python","source_code": "package main\... | ai_ref_knowledge | OPEA Documentation | ### CodeTrans Megaservice
The CodeTrans megaservice orchestrates the entire translation process. Test it with a simple code translation request:
```bash
curl http://${host_ip}:7777/v1/codetrans \
-H "Content-Type: application/json" \
-d '{"language_from": "Golang","language_to": "Python","source_code": "package main\... | ### CodeTrans Megaservice
The CodeTrans megaservice orchestrates the entire translation process. Test it with a simple code translation request:
```bash
curl http://${host_ip}:7777/v1/codetrans \
-H "Content-Type: application/json" \
-d '{"language_from": "Golang","language_to": "Python","source_code": "package main\... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
21f7c51b-7c73-45b6-8241-379bae78a7e1 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 13 | opea-semantic-v1 | 67556280059e51d2 | data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"text":"\n"}],"created":1737123224,"model":"mistralai/Mistral-7B-Instruct-v0.3","object":"text_completion","system_fingerprint":"2.4.0-sha-0a655a0-intel-cpu","usage":null} data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"tex... | ai_ref_knowledge | OPEA Documentation | data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"text":"\n"}],"created":1737123224,"model":"mistralai/Mistral-7B-Instruct-v0.3","object":"text_completion","system_fingerprint":"2.4.0-sha-0a655a0-intel-cpu","usage":null} data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"tex... | data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"text":"\n"}],"created":1737123224,"model":"mistralai/Mistral-7B-Instruct-v0.3","object":"text_completion","system_fingerprint":"2.4.0-sha-0a655a0-intel-cpu","usage":null} data: {"id":"","choices":[{"finish_reason":"","index":0,"logprobs":null,"tex... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
304f9759-e897-41f0-ae93-e86823e4b113 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 3 | opea-semantic-v1 | 984c6b52caed2f5d | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon
Run `docker compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeTrans. | ai_ref_knowledge | OPEA Documentation | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon
Run `docker compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeTrans. | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon
Run `docker compose` with the provided YAML file to start all the services mentioned above as containers. The vLLM or TGI service can be used for CodeTrans. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
5484be53-80af-4456-b33c-d159e777d53c | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 15 | opea-semantic-v1 | baa7a12141141777 | with a simple code translation request: ```bash curl http://${host_ip}:7777/v1/codetrans \ -H "Content-Type: application/json" \ -d '{"language_from": "Golang","language_to": "Python","source_code": "package main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n}"}'
Sample output:
```bash
data: {"id"... | ai_ref_knowledge | OPEA Documentation | with a simple code translation request: ```bash curl http://${host_ip}:7777/v1/codetrans \ -H "Content-Type: application/json" \ -d '{"language_from": "Golang","language_to": "Python","source_code": "package main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n}"}'
Sample output:
```bash
data: {"id"... | with a simple code translation request: ```bash curl http://${host_ip}:7777/v1/codetrans \ -H "Content-Type: application/json" \ -d '{"language_from": "Golang","language_to": "Python","source_code": "package main\n\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, World!\");\n}"}'
Sample output:
```bash
data: {"id"... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
6674c037-bd57-4a6b-b3ad-4759e62e490d | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 16 | opea-semantic-v1 | eddd58a8fcca52a4 | can be used to access the frontend by modifying the `FRONTEND_SERVICE_PORT` environment variable. For reference, the port mapping in the `compose.yaml` file is shown below:
```yaml
codetrans-xeon-ui-server:
image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest}
container_name: codetrans-xeon-ui-server
depends_on:
- c... | ai_ref_knowledge | OPEA Documentation | can be used to access the frontend by modifying the `FRONTEND_SERVICE_PORT` environment variable. For reference, the port mapping in the `compose.yaml` file is shown below:
```yaml
codetrans-xeon-ui-server:
image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest}
container_name: codetrans-xeon-ui-server
depends_on:
- c... | can be used to access the frontend by modifying the `FRONTEND_SERVICE_PORT` environment variable. For reference, the port mapping in the `compose.yaml` file is shown below:
```yaml
codetrans-xeon-ui-server:
image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest}
container_name: codetrans-xeon-ui-server
depends_on:
- c... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
7a18185f-180a-46e1-8a31-dbafc818600a | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 10 | opea-semantic-v1 | 8cb5b90aa7bfea8c | ::: :::{tab-item} TGI
```bash
# TGI service
docker logs codetrans-xeon-tgi-service | grep Connected
# If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected | ai_ref_knowledge | OPEA Documentation | ::: :::{tab-item} TGI
```bash
# TGI service
docker logs codetrans-xeon-tgi-service | grep Connected
# If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected | ::: :::{tab-item} TGI
```bash
# TGI service
docker logs codetrans-xeon-tgi-service | grep Connected
# If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
86d3b368-bd90-4b3e-a29b-96319dd0c292 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 8 | opea-semantic-v1 | c3f8e29c98806c15 | ::::{tab-set} :::{tab-item} vllm
```bash
# vLLM service
docker logs codetrans-xeon-vllm-service 2>&1 | grep complete
# If the service is ready, you will get the response like below. INFO: Application startup complete. | ai_ref_knowledge | OPEA Documentation | ::::{tab-set} :::{tab-item} vllm
```bash
# vLLM service
docker logs codetrans-xeon-vllm-service 2>&1 | grep complete
# If the service is ready, you will get the response like below. INFO: Application startup complete. | ::::{tab-set} :::{tab-item} vllm
```bash
# vLLM service
docker logs codetrans-xeon-vllm-service 2>&1 | grep complete
# If the service is ready, you will get the response like below. INFO: Application startup complete. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
926287de-8326-4906-9ace-3bf70758e9e5 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 1 | opea-semantic-v1 | d67915bfc0344aab | The CodeTrans use case uses a single LLM microservice for code translation with model serving done on vLLM or TGI.
This solution is designed to demonstrate the use of the `Mistral-7B-Instruct-v0.3` model on the Intel® Xeon® Scalable processors to translate code between different programming languages. The steps will in... | ai_ref_knowledge | OPEA Documentation | The CodeTrans use case uses a single LLM microservice for code translation with model serving done on vLLM or TGI.
This solution is designed to demonstrate the use of the `Mistral-7B-Instruct-v0.3` model on the Intel® Xeon® Scalable processors to translate code between different programming languages. The steps will in... | The CodeTrans use case uses a single LLM microservice for code translation with model serving done on vLLM or TGI.
This solution is designed to demonstrate the use of the `Mistral-7B-Instruct-v0.3` model on the Intel® Xeon® Scalable processors to translate code between different programming languages. The steps will in... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
9ca5c2f5-ba1b-40b3-b5eb-9fe4d2e692a1 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 9 | opea-semantic-v1 | 1ddecfb80485db5c | service docker logs codetrans-xeon-vllm-service 2>&1 | grep complete # If the service is ready, you will get the response like below. INFO: Application startup complete.
:::
:::{tab-item} TGI | ai_ref_knowledge | OPEA Documentation | service docker logs codetrans-xeon-vllm-service 2>&1 | grep complete # If the service is ready, you will get the response like below. INFO: Application startup complete.
:::
:::{tab-item} TGI | service docker logs codetrans-xeon-vllm-service 2>&1 | grep complete # If the service is ready, you will get the response like below. INFO: Application startup complete.
:::
:::{tab-item} TGI | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
a09488b6-89a3-4eb2-a5e6-38a86439880b | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 4 | opea-semantic-v1 | 13cf8076535e4e85 | After running `docker compose`, check for warning messages for environment variables that are **NOT** set. Address them if needed.
ubuntu@xeon-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon$ docker compose -f ./compose.yaml up -d | ai_ref_knowledge | OPEA Documentation | After running `docker compose`, check for warning messages for environment variables that are **NOT** set. Address them if needed.
ubuntu@xeon-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon$ docker compose -f ./compose.yaml up -d | After running `docker compose`, check for warning messages for environment variables that are **NOT** set. Address them if needed.
ubuntu@xeon-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon$ docker compose -f ./compose.yaml up -d | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
a7536c66-6472-4a8a-b606-2be346bc0b20 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 17 | opea-semantic-v1 | ca9ba7003816cbd6 | ```yaml codetrans-xeon-ui-server: image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest} container_name: codetrans-xeon-ui-server depends_on: - codetrans-xeon-backend-server ports: - "${FRONTEND_SERVICE_PORT:-5173}:5173"
After making this change, restart the containers for the change to take effect. | ai_ref_knowledge | OPEA Documentation | ```yaml codetrans-xeon-ui-server: image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest} container_name: codetrans-xeon-ui-server depends_on: - codetrans-xeon-backend-server ports: - "${FRONTEND_SERVICE_PORT:-5173}:5173"
After making this change, restart the containers for the change to take effect. | ```yaml codetrans-xeon-ui-server: image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest} container_name: codetrans-xeon-ui-server depends_on: - codetrans-xeon-backend-server ports: - "${FRONTEND_SERVICE_PORT:-5173}:5173"
After making this change, restart the containers for the change to take effect. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
bd29823b-3609-49ae-960b-012065ab0a6f | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 2 | opea-semantic-v1 | cdd1fc23033354fa | associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file.
| Use Case Components | Tools | Model | Service Type |
|---------------------|---------------|--------------------------------------|----------------------... | ai_ref_knowledge | OPEA Documentation | associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file.
| Use Case Components | Tools | Model | Service Type |
|---------------------|---------------|--------------------------------------|----------------------... | associated tools. The tools and models listed in the table can be configured via environment variables in either the `set_env.sh` script or the `compose.yaml` file.
| Use Case Components | Tools | Model | Service Type |
|---------------------|---------------|--------------------------------------|----------------------... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
bf0a5e13-2696-4b15-9014-6af5cb9e9078 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 6 | opea-semantic-v1 | 84b207dccbee111a | Run this command to see this info: ```bash docker ps -a
Sample output:
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ca0cfb3edce5 opea/nginx:latest "/docker-entrypoint.…" 8 minutes ago Up 6 minutes 0.0.0.0:80->80/tcp, [::]:80->80/tcp codetrans-xeon-nginx-server
d7ef9da3f7db opea/codetrans-ui:latest "doc... | ai_ref_knowledge | OPEA Documentation | Run this command to see this info: ```bash docker ps -a
Sample output:
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ca0cfb3edce5 opea/nginx:latest "/docker-entrypoint.…" 8 minutes ago Up 6 minutes 0.0.0.0:80->80/tcp, [::]:80->80/tcp codetrans-xeon-nginx-server
d7ef9da3f7db opea/codetrans-ui:latest "doc... | Run this command to see this info: ```bash docker ps -a
Sample output:
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ca0cfb3edce5 opea/nginx:latest "/docker-entrypoint.…" 8 minutes ago Up 6 minutes 0.0.0.0:80->80/tcp, [::]:80->80/tcp codetrans-xeon-nginx-server
d7ef9da3f7db opea/codetrans-ui:latest "doc... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
c09ca5d5-42b4-4f37-8879-576839222aae | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 5 | opea-semantic-v1 | 226849bfd03e91c4 | ubuntu@xeon-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon$ docker compose -f ./compose.yaml up -d
WARN[0000] The "no_proxy" variable is not set. Defaulting to a blank string. WARN[0000] The "http_proxy" variable is not set. Defaulting to a blank string. | ai_ref_knowledge | OPEA Documentation | ubuntu@xeon-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon$ docker compose -f ./compose.yaml up -d
WARN[0000] The "no_proxy" variable is not set. Defaulting to a blank string. WARN[0000] The "http_proxy" variable is not set. Defaulting to a blank string. | ubuntu@xeon-vm:~/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon$ docker compose -f ./compose.yaml up -d
WARN[0000] The "no_proxy" variable is not set. Defaulting to a blank string. WARN[0000] The "http_proxy" variable is not set. Defaulting to a blank string. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
ca2a2826-95d3-4e25-a122-9513a7e9a878 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 12 | opea-semantic-v1 | ba8f3f2359d3d4b6 | ::: ::::
Then try the `cURL` command to verify the vLLM or TGI service:
```bash
curl http://${host_ip}:8008/v1/chat/completions \
-X POST \
-d '{"inputs":" ### System: Please translate the following Golang codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {... | ai_ref_knowledge | OPEA Documentation | ::: ::::
Then try the `cURL` command to verify the vLLM or TGI service:
```bash
curl http://${host_ip}:8008/v1/chat/completions \
-X POST \
-d '{"inputs":" ### System: Please translate the following Golang codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {... | ::: ::::
Then try the `cURL` command to verify the vLLM or TGI service:
```bash
curl http://${host_ip}:8008/v1/chat/completions \
-X POST \
-d '{"inputs":" ### System: Please translate the following Golang codes into Python codes. ### Original codes: '\'''\'''\''Golang \npackage main\n\nimport \"fmt\"\nfunc main() {... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
cb8c22fd-0f95-4b4a-8315-a6c3c280610a | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 7 | opea-semantic-v1 | 814187d13e9779f7 | entrypoint.sh" 8 minutes ago Up 6 minutes 0.0.0.0:9000->9000/tcp, [::]:9000->9000/tcp codetrans-xeon-llm-server 450f74cb65a4 opea/vllm:latest "python3 -m vllm.ent…" 8 minutes ago Up 8 minutes (healthy) 0.0.0.0:8008->80/tcp, [::]:8008->80/tcp codetrans-xeon-vllm-service
Each docker container's log can also be checked us... | ai_ref_knowledge | OPEA Documentation | entrypoint.sh" 8 minutes ago Up 6 minutes 0.0.0.0:9000->9000/tcp, [::]:9000->9000/tcp codetrans-xeon-llm-server 450f74cb65a4 opea/vllm:latest "python3 -m vllm.ent…" 8 minutes ago Up 8 minutes (healthy) 0.0.0.0:8008->80/tcp, [::]:8008->80/tcp codetrans-xeon-vllm-service
Each docker container's log can also be checked us... | entrypoint.sh" 8 minutes ago Up 6 minutes 0.0.0.0:9000->9000/tcp, [::]:9000->9000/tcp codetrans-xeon-llm-server 450f74cb65a4 opea/vllm:latest "python3 -m vllm.ent…" 8 minutes ago Up 8 minutes (healthy) 0.0.0.0:8008->80/tcp, [::]:8008->80/tcp codetrans-xeon-vllm-service
Each docker container's log can also be checked us... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
e1d2a541-497a-48a8-a173-7bc41d3a03a1 | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 11 | opea-semantic-v1 | 021e22707d4ccd96 | service docker logs codetrans-xeon-tgi-service | grep Connected # If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected
:::
:::: | ai_ref_knowledge | OPEA Documentation | service docker logs codetrans-xeon-tgi-service | grep Connected # If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected
:::
:::: | service docker logs codetrans-xeon-tgi-service | grep Connected # If the service is ready, you will get the response like below. 2024-09-03T02:47:53.402023Z INFO text_generation_router::server: router/src/server.rs:2311: Connected
:::
:::: | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
feb41f4b-2d49-4bd2-8621-1536b0aaeefe | OPEA Documentation | file://datasets/opea-docs/tutorial/CodeTrans/deploy/xeon.md | unknown | b312b2ad-518e-428b-b650-46b41239ba3e | 18 | opea-semantic-v1 | 005ca9b679ffcc13 | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon
To stop and remove all the containers, use the commands below: | ai_ref_knowledge | OPEA Documentation | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon
To stop and remove all the containers, use the commands below: | Navigate to the `docker compose` directory for this hardware platform. ```bash cd $WORKSPACE/GenAIExamples/CodeTrans/docker_compose/intel/cpu/xeon
To stop and remove all the containers, use the commands below: | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
00575a6d-7aa1-4815-a11e-490297886b15 | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 13 | opea-semantic-v1 | 35e407391f53a99f | The use case will use the following combination of the GenAIComps with the tools.
|use case components | Tools | Model | Service Type |
|---------------- |--------------|-----------------------------|-------|
|Data Prep | LangChain | NA | OPEA Microservice |
|VectorDB | Redis | NA | Open source service |
|Embedding | T... | ai_ref_knowledge | OPEA Documentation | The use case will use the following combination of the GenAIComps with the tools.
|use case components | Tools | Model | Service Type |
|---------------- |--------------|-----------------------------|-------|
|Data Prep | LangChain | NA | OPEA Microservice |
|VectorDB | Redis | NA | Open source service |
|Embedding | T... | The use case will use the following combination of the GenAIComps with the tools.
|use case components | Tools | Model | Service Type |
|---------------- |--------------|-----------------------------|-------|
|Data Prep | LangChain | NA | OPEA Microservice |
|VectorDB | Redis | NA | Open source service |
|Embedding | T... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
089ea769-6a48-4194-af4c-0bce39c1e81f | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 25 | opea-semantic-v1 | ec33d96f54b39035 | ```bash curl -X POST "http://${host_ip}:6007/v1/dataprep/ingest" \ -H "Content-Type: multipart/form-data" \ -F 'link_list=["https://opea.dev"]' # expected output {"status":200,"message":"Data preparation succeeded"}
### Retrieval from KnowledgeBase | ai_ref_knowledge | OPEA Documentation | ```bash curl -X POST "http://${host_ip}:6007/v1/dataprep/ingest" \ -H "Content-Type: multipart/form-data" \ -F 'link_list=["https://opea.dev"]' # expected output {"status":200,"message":"Data preparation succeeded"}
### Retrieval from KnowledgeBase | ```bash curl -X POST "http://${host_ip}:6007/v1/dataprep/ingest" \ -H "Content-Type: multipart/form-data" \ -F 'link_list=["https://opea.dev"]' # expected output {"status":200,"message":"Data preparation succeeded"}
### Retrieval from KnowledgeBase | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
184f0b9e-8c3a-42b2-b68e-c88bd480c2b2 | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 21 | opea-semantic-v1 | 1cd7b2c7c7a12180 | redis-vector-db 79276cf45a47 ghcr.io/huggingface/text-embeddings-inference:cpu-1.5 "text-embeddings-rou…" 32 hours ago Up 2 hours 0.0.0.0:6006->80/tcp, :::6006->80/tcp tei-embedding-server 4943e5f6cd80 ghcr.io/huggingface/text-embeddings-inference:cpu-1.5 "text-embeddings-rou…" 32 hours ago Up 2 hours 0.0.0.0:8808->80/... | ai_ref_knowledge | OPEA Documentation | redis-vector-db 79276cf45a47 ghcr.io/huggingface/text-embeddings-inference:cpu-1.5 "text-embeddings-rou…" 32 hours ago Up 2 hours 0.0.0.0:6006->80/tcp, :::6006->80/tcp tei-embedding-server 4943e5f6cd80 ghcr.io/huggingface/text-embeddings-inference:cpu-1.5 "text-embeddings-rou…" 32 hours ago Up 2 hours 0.0.0.0:8808->80/... | redis-vector-db 79276cf45a47 ghcr.io/huggingface/text-embeddings-inference:cpu-1.5 "text-embeddings-rou…" 32 hours ago Up 2 hours 0.0.0.0:6006->80/tcp, :::6006->80/tcp tei-embedding-server 4943e5f6cd80 ghcr.io/huggingface/text-embeddings-inference:cpu-1.5 "text-embeddings-rou…" 32 hours ago Up 2 hours 0.0.0.0:8808->80/... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
1a12bd1f-7ce9-45d9-9902-d996109acf89 | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 3 | opea-semantic-v1 | 0ed619a26809d1e4 | 1. Embedding TEI Service 2. Retriever Vector Store Service 3. Rerank TEI Service 4. Dataprep Service
The solution is aimed to show how to use all components of DocIndexRetriever on Gaudi AI Accelerator. We will go through how to setup docker container to start a microservices and megaservice. | ai_ref_knowledge | OPEA Documentation | 1. Embedding TEI Service 2. Retriever Vector Store Service 3. Rerank TEI Service 4. Dataprep Service
The solution is aimed to show how to use all components of DocIndexRetriever on Gaudi AI Accelerator. We will go through how to setup docker container to start a microservices and megaservice. | 1. Embedding TEI Service 2. Retriever Vector Store Service 3. Rerank TEI Service 4. Dataprep Service
The solution is aimed to show how to use all components of DocIndexRetriever on Gaudi AI Accelerator. We will go through how to setup docker container to start a microservices and megaservice. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
405e6aca-cb00-4a58-8edf-692f69a2be8a | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 11 | opea-semantic-v1 | 74c329d7d9e37312 | Build the megaservice image for this use case.
```bash
cd $WORKSPACE/GenAIExamples/DocIndexRetriever/
docker build --no-cache -t opea/doc-index-retriever:${RELEASE_VERSION} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f ./Dockerfile . | ai_ref_knowledge | OPEA Documentation | Build the megaservice image for this use case.
```bash
cd $WORKSPACE/GenAIExamples/DocIndexRetriever/
docker build --no-cache -t opea/doc-index-retriever:${RELEASE_VERSION} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f ./Dockerfile . | Build the megaservice image for this use case.
```bash
cd $WORKSPACE/GenAIExamples/DocIndexRetriever/
docker build --no-cache -t opea/doc-index-retriever:${RELEASE_VERSION} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f ./Dockerfile . | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
48a9a6d7-b61c-4b95-bceb-ae55db93fb55 | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 26 | opea-semantic-v1 | 0e96da2758710b64 | ### Retrieval from KnowledgeBase
```bash
curl http://${host_ip}:8889/v1/retrievaltool -X POST -H "Content-Type: application/json" -d '{
"messages": "Explain the OPEA project?"
}' | ai_ref_knowledge | OPEA Documentation | ### Retrieval from KnowledgeBase
```bash
curl http://${host_ip}:8889/v1/retrievaltool -X POST -H "Content-Type: application/json" -d '{
"messages": "Explain the OPEA project?"
}' | ### Retrieval from KnowledgeBase
```bash
curl http://${host_ip}:8889/v1/retrievaltool -X POST -H "Content-Type: application/json" -d '{
"messages": "Explain the OPEA project?"
}' | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
4a5ede37-eeb5-4046-9806-e952157f6dbb | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 27 | opea-semantic-v1 | 6b69c292b1ce3d9a | ```bash curl http://${host_ip}:8889/v1/retrievaltool -X POST -H "Content-Type: application/json" -d '{ "messages": "Explain the OPEA project?" }'
# expected output
{"id":"354e62c703caac8c547b3061433ec5e8","reranked_docs":[{"id":"06d5a5cefc06cf9a9e0b5fa74a9f233c","text":"Close SearchsearchMenu WikiNewsCommunity Daysx-tw... | ai_ref_knowledge | OPEA Documentation | ```bash curl http://${host_ip}:8889/v1/retrievaltool -X POST -H "Content-Type: application/json" -d '{ "messages": "Explain the OPEA project?" }'
# expected output
{"id":"354e62c703caac8c547b3061433ec5e8","reranked_docs":[{"id":"06d5a5cefc06cf9a9e0b5fa74a9f233c","text":"Close SearchsearchMenu WikiNewsCommunity Daysx-tw... | ```bash curl http://${host_ip}:8889/v1/retrievaltool -X POST -H "Content-Type: application/json" -d '{ "messages": "Explain the OPEA project?" }'
# expected output
{"id":"354e62c703caac8c547b3061433ec5e8","reranked_docs":[{"id":"06d5a5cefc06cf9a9e0b5fa74a9f233c","text":"Close SearchsearchMenu WikiNewsCommunity Daysx-tw... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
4dcf8a5e-75f9-4496-96c5-3a2334d0d973 | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 12 | opea-semantic-v1 | 672f163fe7228448 | Before proceeding, verify that you have all required Docker images by running `docker images`. You should see the following images:
* opea/embedding:${RELEASE_VERSION}
* opea/retriever:${RELEASE_VERSION}
* opea/reranking:${RELEASE_VERSION}
* opea/dataprep:${RELEASE_VERSION}
* opea/doc-index-retriever:${RELEASE_VERSION} | ai_ref_knowledge | OPEA Documentation | Before proceeding, verify that you have all required Docker images by running `docker images`. You should see the following images:
* opea/embedding:${RELEASE_VERSION}
* opea/retriever:${RELEASE_VERSION}
* opea/reranking:${RELEASE_VERSION}
* opea/dataprep:${RELEASE_VERSION}
* opea/doc-index-retriever:${RELEASE_VERSION} | Before proceeding, verify that you have all required Docker images by running `docker images`. You should see the following images:
* opea/embedding:${RELEASE_VERSION}
* opea/retriever:${RELEASE_VERSION}
* opea/reranking:${RELEASE_VERSION}
* opea/dataprep:${RELEASE_VERSION}
* opea/doc-index-retriever:${RELEASE_VERSION} | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
6994dcbf-ad59-42b1-8b27-6ce8e61ffee2 | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 15 | opea-semantic-v1 | e7c631bc1917956d | Tools and models mentioned in the table are configurable either through the environment variable or `compose.yaml`
Set the necessary environment variables to setup the use case by running the `set_env.sh` script. | ai_ref_knowledge | OPEA Documentation | Tools and models mentioned in the table are configurable either through the environment variable or `compose.yaml`
Set the necessary environment variables to setup the use case by running the `set_env.sh` script. | Tools and models mentioned in the table are configurable either through the environment variable or `compose.yaml`
Set the necessary environment variables to setup the use case by running the `set_env.sh` script. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
709223cd-6c4a-48dc-b627-8b31e9f36ed2 | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 18 | opea-semantic-v1 | f63547ad9ff20278 | ```bash cd $WORKSPACE/GenAIExamples/DocIndexRetriever/docker_compose/intel/hpu/gaudi/ docker compose up -d
Note: add the following environment variables in compose yaml if meet issues for downloading models:
```bash
HF_ENDPOINT: https://hf-mirror.com
HF_HUB_ENABLE_HF_TRANSFER: false | ai_ref_knowledge | OPEA Documentation | ```bash cd $WORKSPACE/GenAIExamples/DocIndexRetriever/docker_compose/intel/hpu/gaudi/ docker compose up -d
Note: add the following environment variables in compose yaml if meet issues for downloading models:
```bash
HF_ENDPOINT: https://hf-mirror.com
HF_HUB_ENABLE_HF_TRANSFER: false | ```bash cd $WORKSPACE/GenAIExamples/DocIndexRetriever/docker_compose/intel/hpu/gaudi/ docker compose up -d
Note: add the following environment variables in compose yaml if meet issues for downloading models:
```bash
HF_ENDPOINT: https://hf-mirror.com
HF_HUB_ENABLE_HF_TRANSFER: false | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
77718aa3-e8a7-42b6-8c1e-eac5bc1220a0 | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 17 | opea-semantic-v1 | cfec3aeb40eeb737 | tutorial, we will be deploying via docker compose with the provided YAML file. The docker compose instructions should start all the above-mentioned services as containers.
```bash
cd $WORKSPACE/GenAIExamples/DocIndexRetriever/docker_compose/intel/hpu/gaudi/
docker compose up -d | ai_ref_knowledge | OPEA Documentation | tutorial, we will be deploying via docker compose with the provided YAML file. The docker compose instructions should start all the above-mentioned services as containers.
```bash
cd $WORKSPACE/GenAIExamples/DocIndexRetriever/docker_compose/intel/hpu/gaudi/
docker compose up -d | tutorial, we will be deploying via docker compose with the provided YAML file. The docker compose instructions should start all the above-mentioned services as containers.
```bash
cd $WORKSPACE/GenAIExamples/DocIndexRetriever/docker_compose/intel/hpu/gaudi/
docker compose up -d | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
777bbe4c-ab74-4568-bd85-fbdd2f260738 | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 28 | opea-semantic-v1 | e906e39b4eea37a3 | 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?"}
## Check the docker co... | ai_ref_knowledge | OPEA Documentation | 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?"}
## Check the docker co... | 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?"}
## Check the docker co... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
8cac2cff-b44b-4a59-881e-bbbbad94f605 | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 0 | opea-semantic-v1 | b77fbf5c6ec96a53 | # Single node on-prem deployment with TGI on Gaudi AI Accelerator
This deployment section covers single-node on-prem deployment of the DocIndexRetriever example with OPEA comps to deploy using TGI service. The solution demonstrates building a doc retriever service using the TGI deployed on Intel® Gaudi® AI Accelerator.... | ai_ref_knowledge | OPEA Documentation | # Single node on-prem deployment with TGI on Gaudi AI Accelerator
This deployment section covers single-node on-prem deployment of the DocIndexRetriever example with OPEA comps to deploy using TGI service. The solution demonstrates building a doc retriever service using the TGI deployed on Intel® Gaudi® AI Accelerator.... | # Single node on-prem deployment with TGI on Gaudi AI Accelerator
This deployment section covers single-node on-prem deployment of the DocIndexRetriever example with OPEA comps to deploy using TGI service. The solution demonstrates building a doc retriever service using the TGI deployed on Intel® Gaudi® AI Accelerator.... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
99a27294-83a2-4de3-bfe2-cafd6079d55b | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 10 | opea-semantic-v1 | 6fab2f8ed286b564 | channels data through different microservices, each performing varied tasks. We define the different microservices and the flow of data between them in the `retrieval_tool.py` file.
Build the megaservice image for this use case. | ai_ref_knowledge | OPEA Documentation | channels data through different microservices, each performing varied tasks. We define the different microservices and the flow of data between them in the `retrieval_tool.py` file.
Build the megaservice image for this use case. | channels data through different microservices, each performing varied tasks. We define the different microservices and the flow of data between them in the `retrieval_tool.py` file.
Build the megaservice image for this use case. | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
acfaf8e8-b160-4e18-8b40-0d36ade06158 | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 16 | opea-semantic-v1 | 8e4521b4d6d70d07 | Set the necessary environment variables to setup the use case by running the `set_env.sh` script.
Run the `set_env.sh` script. ```bash
cd $WORKSPACE/GenAIExamples/DocIndexRetriever/docker_compose/intel/hpu/gaudi/
source ./set_env.sh | ai_ref_knowledge | OPEA Documentation | Set the necessary environment variables to setup the use case by running the `set_env.sh` script.
Run the `set_env.sh` script. ```bash
cd $WORKSPACE/GenAIExamples/DocIndexRetriever/docker_compose/intel/hpu/gaudi/
source ./set_env.sh | Set the necessary environment variables to setup the use case by running the `set_env.sh` script.
Run the `set_env.sh` script. ```bash
cd $WORKSPACE/GenAIExamples/DocIndexRetriever/docker_compose/intel/hpu/gaudi/
source ./set_env.sh | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation | |
ae0ec795-9a5a-44e4-881a-96a50c1e00df | OPEA Documentation | file://datasets/opea-docs/tutorial/DocIndexRetriever/deploy/gaudi.md | unknown | 621ec5dc-4467-432e-8d76-36fe747ab3d0 | 6 | opea-semantic-v1 | 922e22e7e8ec44c0 | HUGGINGFACEHUB_API_TOKEN=<your HF token> export EMBEDDING_MODEL_ID="BAAI/bge-base-en-v1.5" export RERANK_MODEL_ID="BAAI/bge-reranker-base" export TEI_EMBEDDING_ENDPOINT="http://${host_ip}:6006" export TEI_RERANKING_ENDPOINT="http://${host_ip}:8808" export EMBEDDING_SERVICE_HOST_IP=${host_ip} export RETRIEVER_SERVICE_HO... | ai_ref_knowledge | OPEA Documentation | HUGGINGFACEHUB_API_TOKEN=<your HF token> export EMBEDDING_MODEL_ID="BAAI/bge-base-en-v1.5" export RERANK_MODEL_ID="BAAI/bge-reranker-base" export TEI_EMBEDDING_ENDPOINT="http://${host_ip}:6006" export TEI_RERANKING_ENDPOINT="http://${host_ip}:8808" export EMBEDDING_SERVICE_HOST_IP=${host_ip} export RETRIEVER_SERVICE_HO... | HUGGINGFACEHUB_API_TOKEN=<your HF token> export EMBEDDING_MODEL_ID="BAAI/bge-base-en-v1.5" export RERANK_MODEL_ID="BAAI/bge-reranker-base" export TEI_EMBEDDING_ENDPOINT="http://${host_ip}:6006" export TEI_RERANKING_ENDPOINT="http://${host_ip}:8808" export EMBEDDING_SERVICE_HOST_IP=${host_ip} export RETRIEVER_SERVICE_HO... | opea, enterprise-ai, genai, docs, P1 | OPEA Documentation |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.