From 5f952b8b8cd0d125a12130c152e9bbe06e252cba Mon Sep 17 00:00:00 2001 From: g-despot Date: Tue, 28 Jan 2025 13:06:28 +0100 Subject: [PATCH] Move comment to Python tab --- .../local.quickstart.import_objects.mdx | 2 ++ .../quickstart/quickstart.import_objects.mdx | 3 +++ developers/weaviate/manage-data/import.mdx | 17 +++++++++-------- developers/weaviate/quickstart/index.md | 2 -- developers/weaviate/quickstart/local.md | 2 -- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/_includes/code/quickstart/local.quickstart.import_objects.mdx b/_includes/code/quickstart/local.quickstart.import_objects.mdx index 94a6ef1df7..bfd00bef2f 100644 --- a/_includes/code/quickstart/local.quickstart.import_objects.mdx +++ b/_includes/code/quickstart/local.quickstart.import_objects.mdx @@ -18,6 +18,8 @@ import JavaCode from '!!raw-loader!/_includes/code/howto/java/src/test/java/io/w title="quickstart_import.py" /> +During a batch import, any failed objects can be obtained through `batch.failed_objects`. Additionally, a running count of failed objects is maintained and can be accessed through `batch.number_errors` within the context manager. This counter can be used to stop the import process in order to investigate the failed objects or references. Find out more about error handling on the Python client [reference page](/developers/weaviate/client-libraries/python#error-handling). + diff --git a/_includes/code/quickstart/quickstart.import_objects.mdx b/_includes/code/quickstart/quickstart.import_objects.mdx index 330350f4c3..46f4d97cf3 100644 --- a/_includes/code/quickstart/quickstart.import_objects.mdx +++ b/_includes/code/quickstart/quickstart.import_objects.mdx @@ -18,6 +18,9 @@ import JavaCode from '!!raw-loader!/_includes/code/howto/java/src/test/java/io/w title="quickstart_import.py" /> + +During a batch import, any failed objects can be obtained through `batch.failed_objects`. Additionally, a running count of failed objects is maintained and can be accessed through `batch.number_errors` within the context manager. This counter can be used to stop the import process in order to investigate the failed objects or references. Find out more about error handling on the Python client [reference page](/developers/weaviate/client-libraries/python#error-handling). + diff --git a/developers/weaviate/manage-data/import.mdx b/developers/weaviate/manage-data/import.mdx index 4de082c8c5..0bef224860 100644 --- a/developers/weaviate/manage-data/import.mdx +++ b/developers/weaviate/manage-data/import.mdx @@ -42,6 +42,15 @@ The following example adds objects to the `MyCollection` collection. endMarker="# END BasicBatchImportExample" language="py" /> + +### Error handling + +During a batch import, any failed objects or references will be stored and can be obtained through `batch.failed_objects` and `batch.failed_references`. +Additionally, a running count of failed objects and references is maintained and can be accessed through `batch.number_errors` within the context manager. +This counter can be used to stop the import process in order to investigate the failed objects or references. + +Find out more about error handling on the Python client [reference page](/developers/weaviate/client-libraries/python#error-handling). + @@ -90,14 +99,6 @@ The following example adds objects to the `MyCollection` collection. -### Error handling - -During a batch import, any failed objects or references will be stored and can be obtained through `batch.failed_objects` and `batch.failed_references`. -Additionally, a running count of failed objects and references is maintained and can be accessed through `batch.number_errors` within the context manager. -This counter can be used to stop the import process in order to investigate the failed objects or references. - -Find out more about error handling on the Python client [reference page](/developers/weaviate/client-libraries/python#error-handling). - ## Use the gRPC API :::info Added in `v1.23`. diff --git a/developers/weaviate/quickstart/index.md b/developers/weaviate/quickstart/index.md index da43991bb7..b0b15d61db 100644 --- a/developers/weaviate/quickstart/index.md +++ b/developers/weaviate/quickstart/index.md @@ -300,8 +300,6 @@ import ImportObjects from '/_includes/code/quickstart/quickstart.import_objects. Run this code to add the demo data. -During a batch import, any failed objects can be obtained through `batch.failed_objects`. Additionally, a running count of failed objects is maintained and can be accessed through `batch.number_errors` within the context manager. This counter can be used to stop the import process in order to investigate the failed objects or references. Find out more about error handling on the Python client [reference page](/developers/weaviate/client-libraries/python#error-handling). - :::info Cohere API key in the header Note that this code includes an additional header for the Cohere API key. Weaviate uses this key to generate vector embeddings for the data objects as they are being added. ::: diff --git a/developers/weaviate/quickstart/local.md b/developers/weaviate/quickstart/local.md index 82fce81582..1a2846c594 100644 --- a/developers/weaviate/quickstart/local.md +++ b/developers/weaviate/quickstart/local.md @@ -220,8 +220,6 @@ import ImportObjects from '/_includes/code/quickstart/local.quickstart.import_ob Run this code to add the demo data. -During a batch import, any failed objects can be obtained through `batch.failed_objects`. Additionally, a running count of failed objects is maintained and can be accessed through `batch.number_errors` within the context manager. This counter can be used to stop the import process in order to investigate the failed objects or references. Find out more about error handling on the Python client [reference page](/developers/weaviate/client-libraries/python#error-handling). -
## Step 3: Queries