-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- The migrate_data_from_weaviate_to_weaviate
function is called to migrate the data.
-
-
-
-
-
-
-
-
-
-
-
-
- The migrate_data_from_weaviate_to_weaviate
function is called to migrate the data.
-
-
-
-
-
-
-
-
-
- The migrate_data_from_weaviate_to_weaviate
function is called to migrate the data.
-
-
-
-
-
-
-
-
-
-
-
-
- The migrate_data_from_weaviate_to_weaviate
function is called to migrate the data.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -219,14 +203,6 @@ You can group and nest filters.
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -130,14 +122,6 @@ You can search by a base64 representation of an image:
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
pip install -U weaviate-client
```
-
-
-```bash
-pip install "weaviate-client==3.*"
-```
-
```bash
@@ -169,14 +162,6 @@ This [`nearVector`](/docs/weaviate/search/similarity#search-with-a-vector) query
language="py"
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
'
+ )
+
+ # We'll build the new content line by line
+ result_lines = []
+ skip_mode = False
+ nesting_level = 0
+
+ # Process the file line by line
+ lines = file_content.split("\n")
+ for line in lines:
+ # Check if we're starting a Python Client v3 TabItem
+ if not skip_mode and start_pattern.search(line):
+ skip_mode = True
+ nesting_level = 1
+ # Check if there's a closing tag on the same line
+ if "" in line:
+ nesting_level -= 1
+ if nesting_level == 0:
+ skip_mode = False
+ continue
+
+ # If we're in skip mode, check for nested tags
+ if skip_mode:
+ # Count opening tags (handle nested TabItems)
+ nesting_level += line.count("")
+
+ # If nesting level is back to 0, we're done skipping
+ if nesting_level <= 0:
+ skip_mode = False
+ continue
+
+ # If we're not skipping, add the line to the result
+ result_lines.append(line)
+
+ return "\n".join(result_lines)
+
+
+def process_directory(directory_path, file_extensions, dry_run=True):
+ """
+ Process all files with given extensions in a directory and its subdirectories.
+ """
+ directory = Path(directory_path)
+ files_processed = 0
+ files_modified = 0
+
+ for ext in file_extensions:
+ for file_path in directory.glob(f"**/*{ext}"):
+ files_processed += 1
+
+ # Read the file content
+ with open(file_path, "r", encoding="utf-8") as file:
+ try:
+ content = file.read()
+ except UnicodeDecodeError:
+ print(f"Error reading {file_path}: UnicodeDecodeError")
+ continue
+
+ # Process the content
+ new_content = remove_py3_tab_items(content)
+
+ # If content was modified
+ if new_content != content:
+ files_modified += 1
+ print(f"Modified: {file_path}")
+
+ # Write the changes if not in dry-run mode
+ if not dry_run:
+ with open(file_path, "w", encoding="utf-8") as file:
+ file.write(new_content)
+
+ return files_processed, files_modified
+
+
+def main():
+ parser = argparse.ArgumentParser(
+ description="Remove Python Client v3 TabItem blocks from files."
+ )
+ parser.add_argument("directory", help="Directory to process")
+ parser.add_argument(
+ "--ext",
+ nargs="+",
+ default=[".md", ".mdx"],
+ help="File extensions to process (default: .md .mdx)",
+ )
+ parser.add_argument(
+ "--apply",
+ action="store_true",
+ help="Apply changes (without this flag, runs in dry-run mode)",
+ )
+
+ args = parser.parse_args()
+
+ print(f"Processing files in {args.directory}")
+ print(f"File extensions: {', '.join(args.ext)}")
+ print(
+ f"Mode: {'Apply Changes' if args.apply else 'Dry Run (no changes will be made)'}"
+ )
+
+ files_processed, files_modified = process_directory(
+ args.directory, args.ext, dry_run=not args.apply
+ )
+
+ print(f"\nSummary:")
+ print(f"Files processed: {files_processed}")
+ print(f"Files that would be modified: {files_modified}")
+
+ if not args.apply and files_modified > 0:
+ print("\nRun with --apply to make the changes.")
+
+
+if __name__ == "__main__":
+ main()
From c43a05c6f49a9e3f6dca01f39bd6e995d1e030ab Mon Sep 17 00:00:00 2001
From: g-despot <66276597+g-despot@users.noreply.github.com>
Date: Sun, 23 Mar 2025 14:36:04 +0100
Subject: [PATCH 2/2] Rename explicit v4 mentions
---
.../configuration/replication-consistency.mdx | 2 +-
_includes/code/connections/oidc-connect.mdx | 2 +-
_includes/code/connections/timeouts-cloud.mdx | 2 +-
.../code/connections/timeouts-custom.mdx | 2 +-
_includes/code/connections/timeouts-local.mdx | 2 +-
.../code/embedded.instantiate.custom.mdx | 2 +-
_includes/code/embedded.instantiate.mdx | 2 +-
.../code/embedded.instantiate.module.mdx | 2 +-
_includes/code/graphql.aggregate.groupby.mdx | 2 +-
.../code/graphql.aggregate.nearObject.mdx | 2 +-
_includes/code/graphql.aggregate.nearText.mdx | 2 +-
.../code/graphql.aggregate.nearVector.mdx | 2 +-
_includes/code/graphql.aggregate.simple.mdx | 2 +-
_includes/code/graphql.filters.after.mdx | 2 +-
.../graphql.filters.bm25.filter.example.mdx | 2 +-
_includes/code/graphql.filters.bm25.mdx | 2 +-
_includes/code/graphql.filters.group.mdx | 2 +-
.../graphql.filters.hybrid.filter.example.mdx | 2 +-
_includes/code/graphql.filters.hybrid.mdx | 2 +-
.../graphql.filters.hybrid.properties.mdx | 2 +-
.../code/graphql.filters.hybrid.vector.mdx | 2 +-
_includes/code/graphql.filters.limit.mdx | 2 +-
_includes/code/graphql.filters.nearObject.mdx | 2 +-
.../code/graphql.filters.nearText.2obj.mdx | 2 +-
_includes/code/graphql.filters.nearText.mdx | 2 +-
_includes/code/graphql.filters.nearVector.mdx | 2 +-
_includes/code/graphql.filters.offset.mdx | 2 +-
.../graphql.filters.where.beacon.count.mdx | 2 +-
.../code/graphql.filters.where.beacon.mdx | 2 +-
.../graphql.filters.where.geocoordinates.mdx | 2 +-
_includes/code/graphql.filters.where.id.mdx | 2 +-
_includes/code/graphql.filters.where.like.mdx | 2 +-
.../code/graphql.filters.where.operands.mdx | 2 +-
.../code/graphql.filters.where.simple.mdx | 2 +-
.../code/graphql.filters.where.timestamps.mdx | 2 +-
_includes/code/graphql.get.beacon.mdx | 2 +-
_includes/code/graphql.get.consistency.mdx | 2 +-
_includes/code/graphql.get.groupby.mdx | 2 +-
_includes/code/graphql.get.multitenancy.mdx | 2 +-
_includes/code/graphql.get.simple.mdx | 2 +-
.../graphql.underscoreproperties.distance.mdx | 2 +-
...phql.underscoreproperties.semanticpath.mdx | 2 +-
.../howto/manage-data.create.with.geo.mdx | 2 +-
.../manage-data.read.check.existence.mdx | 2 +-
.../code/howto/manage-data.shards.inspect.mdx | 2 +-
.../code/howto/manage-data.shards.update.mdx | 2 +-
_includes/code/meta.mdx | 2 +-
_includes/code/nodes.mdx | 2 +-
_includes/code/qna-transformers.ask.mdx | 2 +-
_includes/code/quickstart.byov.schema.mdx | 2 +-
...uickstart.import.questions-and-vectors.mdx | 2 +-
_includes/code/quickstart/connect.partial.mdx | 2 +-
_includes/code/quickstart/import.mdx | 2 +-
_includes/code/quickstart/neartext.mdx | 2 +-
.../code/replication.get.object.by.id.mdx | 2 +-
.../code/schema.things.create.replication.mdx | 2 +-
.../code/schema.things.properties.add.mdx | 2 +-
_includes/code/tutorial.schema.create.mdx | 2 +-
.../code/tutorial.schema.index-settings.mdx | 2 +-
.../code/tutorial.schema.multi-tenancy.mdx | 2 +-
.../tutorial.schema.properties.options.mdx | 2 +-
_includes/code/wcs.authentication.api.key.mdx | 2 +-
...hentication.api.key.with.inference.key.mdx | 2 +-
_includes/code/wcs.without.authentication.mdx | 2 +-
_includes/code/wellknown.live.mdx | 2 +-
.../code/wellknown.openid-configuration.mdx | 2 +-
_includes/code/wellknown.ready.mdx | 2 +-
_includes/how.to.get.object.count.mdx | 2 +-
_includes/schema-delete-class.mdx | 2 +-
.../_core-1-24-include.mdx | 1 -
docs/agents/query/tutorial-ecommerce.mdx | 24 +++++-----
.../tutorial-enrich-dataset.mdx | 22 ++++-----
docs/cloud/manage-clusters/connect.mdx | 4 +-
.../api/graphql/additional-operators.md | 8 ++--
.../weaviate/client-libraries/python/index.md | 9 +---
docs/weaviate/config-refs/datatypes.md | 32 ++++++-------
docs/weaviate/configuration/backups.md | 12 ++---
.../compression/bq-compression.md | 4 +-
.../compression/pq-compression.md | 8 ++--
.../compression/sq-compression.md | 4 +-
.../configuration/rbac/manage-roles-users.mdx | 38 +++++++--------
docs/weaviate/connections/connect-cloud.mdx | 4 +-
docs/weaviate/connections/connect-custom.mdx | 2 +-
.../weaviate/connections/connect-embedded.mdx | 2 +-
docs/weaviate/connections/connect-local.mdx | 8 ++--
docs/weaviate/manage-data/collections.mdx | 46 +++++++++----------
docs/weaviate/manage-data/create.mdx | 14 +++---
.../weaviate/manage-data/cross-references.mdx | 24 +++++-----
docs/weaviate/manage-data/delete.mdx | 10 ++--
docs/weaviate/manage-data/import.mdx | 21 ++++-----
docs/weaviate/manage-data/migrate.mdx | 20 ++++----
docs/weaviate/manage-data/multi-tenancy.md | 24 +++++-----
.../weaviate/manage-data/read-all-objects.mdx | 6 +--
docs/weaviate/manage-data/read.mdx | 6 +--
docs/weaviate/manage-data/tenant-states.mdx | 8 ++--
docs/weaviate/manage-data/update.mdx | 8 ++--
docs/weaviate/search/aggregate.md | 16 +++----
docs/weaviate/search/basics.md | 18 ++++----
docs/weaviate/search/bm25.md | 18 ++++----
docs/weaviate/search/filters.md | 28 +++++------
docs/weaviate/search/generative.md | 8 ++--
docs/weaviate/search/hybrid.md | 28 +++++------
docs/weaviate/search/image.md | 4 +-
docs/weaviate/search/multi-vector.md | 14 +++---
docs/weaviate/search/rerank.md | 6 +--
docs/weaviate/search/similarity.md | 20 ++++----
.../starter-guides/custom-vectors.mdx | 4 +-
docs/weaviate/starter-guides/generative.md | 26 +++++------
.../tutorials/multi-vector-embeddings.md | 32 ++++++-------
docs/weaviate/tutorials/rbac.mdx | 18 ++++----
110 files changed, 369 insertions(+), 378 deletions(-)
diff --git a/_includes/code/configuration/replication-consistency.mdx b/_includes/code/configuration/replication-consistency.mdx
index f189528f..1f442987 100644
--- a/_includes/code/configuration/replication-consistency.mdx
+++ b/_includes/code/configuration/replication-consistency.mdx
@@ -7,7 +7,7 @@ import FilteredTextBlock from '@site/src/components/Documentation/FilteredTextBl
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
```python
import weaviate, os
diff --git a/_includes/code/quickstart/import.mdx b/_includes/code/quickstart/import.mdx
index 78a6494c..b0183957 100644
--- a/_includes/code/quickstart/import.mdx
+++ b/_includes/code/quickstart/import.mdx
@@ -7,7 +7,7 @@ import EndToEndTSCodeLegacy from '!!raw-loader!/_includes/code/quickstart/endtoe
import GoImportObjects from '!!raw-loader!/_includes/code/quickstart/go-add-objects.go';
-
+
*/}
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
Use an API key to connect to Weaviate Cloud.
-
+
-
+
-
+
-
+
-
+
-
+
*/}
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-