From c46acc7b405bfbb169652c448340a478347a7a2f Mon Sep 17 00:00:00 2001 From: Francisco Javier Arceo Date: Wed, 30 Jul 2025 20:53:03 -0400 Subject: [PATCH] update action config Signed-off-by: Francisco Javier Arceo --- .github/workflows/integration-vector-io-tests.yml | 3 +-- llama_stack/providers/remote/vector_io/weaviate/weaviate.py | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-vector-io-tests.yml b/.github/workflows/integration-vector-io-tests.yml index fc2a6a514..2f629b44e 100644 --- a/.github/workflows/integration-vector-io-tests.yml +++ b/.github/workflows/integration-vector-io-tests.yml @@ -137,8 +137,7 @@ jobs: PGVECTOR_USER: ${{ matrix.vector-io-provider == 'remote::pgvector' && 'llamastack' || '' }} PGVECTOR_PASSWORD: ${{ matrix.vector-io-provider == 'remote::pgvector' && 'llamastack' || '' }} ENABLE_WEAVIATE: ${{ matrix.vector-io-provider == 'remote::weaviate' && 'true' || '' }} - WEAVIATE_API_KEY: ${{ matrix.vector-io-provider == 'remote::weaviate' && 'llamastack' || '' }} - WEAVIATE_CLUSTER_URL: ${{ matrix.vector-io-provider == 'remote::weaviate' && 'http://localhost:8080' || '' }} + WEAVIATE_CLUSTER_URL: ${{ matrix.vector-io-provider == 'remote::weaviate' && 'localhost:8080' || '' }} run: | uv run pytest -sv --stack-config="inference=inline::sentence-transformers,vector_io=${{ matrix.vector-io-provider }}" \ diff --git a/llama_stack/providers/remote/vector_io/weaviate/weaviate.py b/llama_stack/providers/remote/vector_io/weaviate/weaviate.py index aca202b75..f19e93754 100644 --- a/llama_stack/providers/remote/vector_io/weaviate/weaviate.py +++ b/llama_stack/providers/remote/vector_io/weaviate/weaviate.py @@ -167,6 +167,7 @@ class WeaviateVectorIOAdapter( def _get_client(self) -> weaviate.Client: if self.config.weaviate_cluster_url == "localhost:8080": + log.info("using Weaviate locally in container") host, port = self.config.weaviate_cluster_url.split(":") key = "local_test" client = weaviate.connect_to_local( @@ -174,6 +175,7 @@ class WeaviateVectorIOAdapter( port=port, ) else: + log.info("Using Weaviate remote cluster with URL") key = f"{self.config.weaviate_cluster_url}::{self.config.weaviate_api_key}" if key in self.client_cache: return self.client_cache[key]