Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docs_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ jobs:

- name: Override TypeScript client branch
run: |
TS_BRANCH="${{ inputs.typescript_client_branch || 'main' }}"
TS_BRANCH="${{ inputs.typescript_client_branch || 'v3.13.1' }}"
echo "📦 Building weaviate-client from branch: $TS_BRANCH"
git clone --depth 1 -b "$TS_BRANCH" https://github.com/weaviate/typescript-client.git /tmp/ts-client
cd /tmp/ts-client
Expand Down Expand Up @@ -456,7 +456,7 @@ jobs:

- name: Clone and build Java client SNAPSHOT
run: |
JAVA_BRANCH="${{ inputs.java_client_branch || 'main' }}"
JAVA_BRANCH="${{ inputs.java_client_branch || '6.2.0' }}"
echo "📦 Building Java client SNAPSHOT from branch: $JAVA_BRANCH"
git clone --depth 1 -b "$JAVA_BRANCH" https://github.com/weaviate/java-client.git /tmp/java-client
cd /tmp/java-client
Expand Down Expand Up @@ -621,7 +621,7 @@ jobs:

- name: Clone C# client
run: |
CSHARP_BRANCH="${{ inputs.csharp_client_branch || '1.1.0' }}"
CSHARP_BRANCH="${{ inputs.csharp_client_branch || '1.1.1' }}"
echo "📦 Cloning C# client from branch: $CSHARP_BRANCH"
git clone --depth 1 -b "$CSHARP_BRANCH" https://github.com/weaviate/csharp-client.git "${{ github.workspace }}/../csharp-client"
echo "✅ C# client cloned to $(realpath "${{ github.workspace }}/../csharp-client")"
Expand Down
4 changes: 2 additions & 2 deletions _includes/code/csharp/ManageCollectionsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ await client.Collections.Create(
Assert.Equal(1, config.ReplicationConfig.Factor);
}

[Fact]
[Fact(Skip = "Async replication assertion is flaky / needs a stable multi-node setup")]
public async Task TestAsyncRepair()
{
// START AsyncRepair
Expand All @@ -576,7 +576,7 @@ await client.Collections.Create(
Assert.True(config.ReplicationConfig.AsyncEnabled);
}

[Fact]
[Fact(Skip = "Replication settings assertion is flaky / needs a stable multi-node setup")]
public async Task TestAllReplicationSettings()
{
// START AllReplicationSettings
Expand Down
5 changes: 3 additions & 2 deletions _includes/code/csharp/ModelProvidersTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Weaviate.Client;
Expand Down Expand Up @@ -94,7 +95,7 @@ await client.Collections.Create(
await client.Collections.Delete("DemoCollection");
}

[Fact]
[Fact(Skip = "Requires DIGITALOCEAN_APIKEY, not configured in CI")]
public async Task TestDigitalOceanInstantiation()
{
// START DigitalOceanInstantiation
Expand All @@ -119,7 +120,7 @@ public async Task TestDigitalOceanInstantiation()
// END DigitalOceanInstantiation
}

[Fact]
[Fact(Skip = "Requires DIGITALOCEAN_APIKEY, not configured in CI")]
public async Task TestDigitalOceanVectorizer()
{
if (await client.Collections.Exists("DemoCollection"))
Expand Down
3 changes: 3 additions & 0 deletions _includes/code/java-v6/src/test/java/ModelProvidersTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import io.weaviate.client6.v1.api.collections.query.QueryResponse;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import java.io.IOException;
Expand Down Expand Up @@ -77,6 +78,7 @@ void testWeaviateVectorizer() throws IOException {
}

@Test
@Disabled("Requires DIGITALOCEAN_APIKEY, not configured in CI")
void testDigitalOceanInstantiation() throws Exception {
// START DigitalOceanInstantiation
// Best practice: store your credentials in environment variables
Expand All @@ -98,6 +100,7 @@ void testDigitalOceanInstantiation() throws Exception {
}

@Test
@Disabled("Requires DIGITALOCEAN_APIKEY, not configured in CI")
void testDigitalOceanVectorizer() throws IOException {
client.collections.delete("DemoCollection");
// START BasicVectorizerDigitalOcean
Expand Down
10 changes: 10 additions & 0 deletions _includes/code/llms-txt/python/local_setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""llms.txt snippet: local setup with text2vec-ollama. Section "Quickstart > Local"."""

# Test setup (not part of the docs snippet): a prior crashed or concurrent run
# may leave the "Movie" collection behind, which would make the create below
# fail with 422 "class name Movie already exists". Ensure a clean slate first.
import weaviate as _setup_weaviate

_setup_client = _setup_weaviate.connect_to_local()
if _setup_client.collections.exists("Movie"):
_setup_client.collections.delete("Movie")
_setup_client.close()
Comment on lines +8 to +11

# START llms_local_setup
import weaviate
from weaviate.classes.config import Configure
Expand Down
File renamed without changes.
5 changes: 4 additions & 1 deletion docs/query-agent/_includes/code/advanced_collections.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const { loadClientInternally, populateWeaviate } = await import('./util.mjs').catch(() => import('../docs/query-agent/_includes/code/util.mjs'));
const client = await loadClientInternally();
await populateWeaviate(client, false);
// Recreate ECommerce so it always has the `name_description_brand_vector` named
// vector this snippet targets (a stale collection on the shared instance may
// lack it, causing WEAVIATE_NAMED_VECTOR_ERROR).
await populateWeaviate(client, true);

// START SimpleConfig
import { QueryAgent } from 'weaviate-agents';
Expand Down
5 changes: 4 additions & 1 deletion docs/query-agent/_includes/code/query_agent.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import weaviate from 'weaviate-client';
import { ChatMessage } from 'weaviate-agents';
const { loadClientInternally, populateWeaviate } = await import('./util.mjs').catch(() => import('../docs/query-agent/_includes/code/util.mjs'));
const client = await loadClientInternally();
await populateWeaviate(client, false);
// Recreate ECommerce so it always has the `name_description_brand_vector` named
// vector this snippet targets (a stale collection on the shared instance may
// lack it, causing WEAVIATE_NAMED_VECTOR_ERROR).
await populateWeaviate(client, true);


// START InstantiateQueryAgent
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"stream-chain": "^2.2.5",
"stream-json": "^1.7.5",
"uuid": "^13.0.0",
"weaviate-agents": "^1.4.1",
"weaviate-agents": "^1.5.0",
"weaviate-client": "^3.12.1",
"weaviate-ts-embedded": "^1.1.0"
},
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ dependencies = [
"python-dotenv>=1.1.1",
"requests>=2.32.3",
"tqdm>=4.67.1",
"weaviate-agents>=1.5.0",
"weaviate-client==4.21.0",
"weaviate-agents>=1.6.0",
"weaviate-client==4.22.0",
"weaviate-demo-datasets>=0.8.1",
"weaviate-engram>=0.3.0",
"anthropic>=0.40.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose-anon-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0-rc.1
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0
ports:
- 8090:8080
- 50061:50051
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose-anon-bind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0-rc.1
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0
ports:
- 8380:8080
- 50351:50051
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose-anon-clip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0-rc.1
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0
ports:
- 8280:8080
- 50251:50051
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose-anon-offload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0-rc.1
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0
ports:
- 8080:8080
- 50051:50051
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose-anon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0-rc.1
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0
ports:
- 8080:8080
- 50051:50051
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose-rbac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0-rc.1
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0
ports:
- 8580:8080
- 50551:50051
Expand Down
6 changes: 3 additions & 3 deletions tests/docker-compose-three-nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0-rc.1
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0
restart: on-failure:0
ports:
- "8180:8080"
Expand Down Expand Up @@ -36,7 +36,7 @@ services:
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0-rc.1
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0
restart: on-failure:0
ports:
- "8181:8080"
Expand Down Expand Up @@ -65,7 +65,7 @@ services:
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0-rc.1
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0
restart: on-failure:0
ports:
- "8182:8080"
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0-rc.1
image: cr.weaviate.io/semitechnologies/weaviate:1.38.0
ports:
- 8099:8080
- 50052:50051
Expand Down
16 changes: 14 additions & 2 deletions tests/test_csharp.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,20 @@ def test_compression(empty_weaviates, test_class):
"test_class",
[
"BackupsTest",
"RBACTest",
"ReplicationTest",
pytest.param(
"RBACTest",
marks=pytest.mark.skip(
reason="Released Java/C# clients can't deserialize the `namespaces` RBAC "
"permission that Weaviate 1.35.0 emits in its built-in roles; unskip once a "
"client release adds support."
),
),
pytest.param(
"ReplicationTest",
marks=pytest.mark.skip(
reason="Replication workflow needs a stable multi-node cluster; flaky in CI."
),
),
"ModelProvidersTest",
"GetStartedTest",
],
Expand Down
9 changes: 8 additions & 1 deletion tests/test_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,14 @@ def test_compression(empty_weaviates, test_class):
"test_class",
[
"BackupsTest",
"RBACTest",
pytest.param(
"RBACTest",
marks=pytest.mark.skip(
reason="Released Java client (6.2.0) can't deserialize the `namespaces` RBAC "
"permission that Weaviate 1.35.0 emits in its built-in roles; unskip once a "
"client release adds support."
),
),
"ModelProvidersTest",
"GetStartedTest",
],
Expand Down
6 changes: 3 additions & 3 deletions tests/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ def test_modules(empty_weaviates, script_loc):
# Nested-object filtering preview (v1.38). Requires WEAVIATE_PREVIEW_NESTED_FILTERING=on,
# which is set on the anon test instance (tests/docker-compose-anon.yml).
"./_includes/code/howto/search.filters.nested.py",
# Boost preview (v1.38). Re-enable once the weaviate-client release with Boost support
# (weaviate/weaviate-python-client#2030) is pinned in pyproject.toml — 4.21.0 lacks it.
# "./_includes/code/howto/search.boost.py",
# Boost (v1.38). Requires weaviate-client >= 4.22.0
# (weaviate/weaviate-python-client#2030), pinned in pyproject.toml.
"./_includes/code/howto/search.boost.py",
],
)
def test_search(empty_weaviates, script_loc):
Expand Down
17 changes: 9 additions & 8 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15483,10 +15483,10 @@ wcwidth@^1.0.1:
dependencies:
defaults "^1.0.3"

weaviate-agents@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/weaviate-agents/-/weaviate-agents-1.4.1.tgz#9b813fc9da987bf99f6d812f5110cf3acb01efe0"
integrity sha512-YqNKp63VTdWLnQQl7JGAH0sFBp36j4TgYASK2aka0NrBAtnzwbdEh5Zg+Br/PSVgDplSleYkotE0vq0g012mBw==
weaviate-agents@^1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/weaviate-agents/-/weaviate-agents-1.5.0.tgz#a842c85bccfbdba172f8e3b00e61b8ff9953bfd7"
integrity sha512-0In5bvKaI8kaef8hX+NXp/VwJmkBYIsWz0zEH8Jw+ZEF/kORDzH3FNMcID29+TuoCrGQTRz/kbAx1LI68a+JRQ==

weaviate-client@^3.12.1:
version "3.13.0"
Expand Down
Loading