Skip to content

[ChatQnA] Add correct ip to no_proxy list, and add no_proxy env for embedding and reranking containers #271

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 12, 2024

Conversation

ctao456
Copy link
Collaborator

@ctao456 ctao456 commented Jun 8, 2024

Description

Add no_proxy env for embedding-tei-server container

Append host_ip to the no_proxy list

Issues

We need to pass no_proxy setting to embedding and reranking microservices. As in the PR below
(#267)

Also, we need to append host_ip, the public host ipv4 address, to the no_proxy list stored in the no_proxy variable.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)

Dependencies

List the newly introduced 3rd party dependency if exists.
(opea-project/GenAIComps#140)
(#267)

Tests

With this patch,

Embedding Microservice ok
curl http://${host_ip}:6000/v1/embeddings
-X POST
-d '{"text":"hello"}'
-H 'Content-Type: application/json'

Reranking Microservice ok
curl http://${host_ip}:8000/v1/reranking
-X POST
-d '{"initial_query":"What is Deep Learning?", "retrieved_docs": [{"text":"Deep Learning is not..."}, {"text":"Deep learning is..."}]}'
-H 'Content-Type: application/json'

ctao456 and others added 3 commits June 8, 2024 16:56
@ctao456 ctao456 changed the title Add correct ip to no_proxy list, and add no_proxy env for embedding and reranking containers [ChatQnA] Add correct ip to no_proxy list, and add no_proxy env for embedding and reranking containers Jun 9, 2024
@lvliang-intel lvliang-intel merged commit 99eb6a6 into opea-project:main Jun 12, 2024
7 checks passed
Spycsh pushed a commit to Spycsh/GenAIExamples that referenced this pull request Jun 19, 2024
…mbedding and reranking containers (opea-project#271)

* Update README.md

Signed-off-by: ctao456 <[email protected]>

* Update docker_compose.yaml

Signed-off-by: ctao456 <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: ctao456 <[email protected]>

* Add no_proxy to all services

Signed-off-by: Chun Tao <[email protected]>

* Update readme to include UI demo

Signed-off-by: Chun Tao <[email protected]>

---------

Signed-off-by: ctao456 <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
yogeshmpandey pushed a commit to hteeyeoh/GenAIExamples that referenced this pull request Aug 12, 2024
…mbedding and reranking containers (opea-project#271)

* Update README.md

Signed-off-by: ctao456 <[email protected]>

* Update docker_compose.yaml

Signed-off-by: ctao456 <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: ctao456 <[email protected]>

* Add no_proxy to all services

Signed-off-by: Chun Tao <[email protected]>

* Update readme to include UI demo

Signed-off-by: Chun Tao <[email protected]>

---------

Signed-off-by: ctao456 <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
JakubLedworowski pushed a commit to JakubLedworowski/GenAIExamples that referenced this pull request Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants