Skip to content

Commit

Permalink
weaviate remove deprecations (#39707)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowrna committed May 20, 2024
1 parent 655bb60 commit 79cf7e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions tests/always/test_example_dags.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@
"tests/system/providers/google/cloud/kubernetes_engine/example_kubernetes_engine_resource.py",
"tests/system/providers/google/cloud/life_sciences/example_life_sciences.py",
"tests/system/providers/google/marketing_platform/example_analytics.py",
"tests/system/providers/weaviate/example_weaviate_cohere.py",
"tests/system/providers/weaviate/example_weaviate_openai.py",
"tests/system/providers/weaviate/example_weaviate_operator.py",
# Deprecated Operators/Hooks, which replaced by common.sql Operators/Hooks
"tests/system/providers/apache/drill/example_drill_dag.py",
"tests/system/providers/jdbc/example_jdbc_queries.py",
Expand Down
2 changes: 1 addition & 1 deletion tests/system/providers/weaviate/example_weaviate_cohere.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def update_vector_data_in_json(**kwargs):
task_id="perform_ingestion",
conn_id="weaviate_default",
class_name="Weaviate_example_class",
input_json=update_vector_data_in_json["return_value"],
input_data=update_vector_data_in_json["return_value"],
)

embed_query = CohereEmbeddingOperator(
Expand Down
2 changes: 1 addition & 1 deletion tests/system/providers/weaviate/example_weaviate_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def update_vector_data_in_json(**kwargs):
task_id="perform_ingestion",
conn_id="weaviate_default",
class_name="Weaviate_example_class",
input_json=update_vector_data_in_json["return_value"],
input_data=update_vector_data_in_json["return_value"],
)

embed_query = OpenAIEmbeddingOperator(
Expand Down
8 changes: 4 additions & 4 deletions tests/system/providers/weaviate/example_weaviate_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def store_data_with_vectors_in_xcom():
task_id="batch_data_with_vectors_xcom_data",
conn_id="weaviate_default",
class_name="QuestionWithoutVectorizerUsingOperator",
input_json=store_data_with_vectors_in_xcom(),
input_data=store_data_with_vectors_in_xcom(),
trigger_rule="all_done",
)
# [END howto_operator_weaviate_embedding_and_ingest_xcom_data_with_vectors]
Expand All @@ -131,7 +131,7 @@ def store_data_with_vectors_in_xcom():
task_id="batch_data_with_vectors_callable_data",
conn_id="weaviate_default",
class_name="QuestionWithoutVectorizerUsingOperator",
input_json=get_data_with_vectors(),
input_data=get_data_with_vectors(),
trigger_rule="all_done",
)
# [END howto_operator_weaviate_embedding_and_ingest_callable_data_with_vectors]
Expand Down Expand Up @@ -231,7 +231,7 @@ def store_doc_data_without_vectors_in_xcom():
task_id="batch_data_without_vectors_xcom_data",
conn_id="weaviate_default",
class_name="QuestionWithOpenAIVectorizerUsingOperator",
input_json=xcom_data_without_vectors["return_value"],
input_data=xcom_data_without_vectors["return_value"],
trigger_rule="all_done",
)
# [END howto_operator_weaviate_ingest_xcom_data_without_vectors]
Expand All @@ -241,7 +241,7 @@ def store_doc_data_without_vectors_in_xcom():
task_id="batch_data_without_vectors_callable_data",
conn_id="weaviate_default",
class_name="QuestionWithOpenAIVectorizerUsingOperator",
input_json=get_data_without_vectors(),
input_data=get_data_without_vectors(),
trigger_rule="all_done",
)
# [END howto_operator_weaviate_ingest_callable_data_without_vectors]
Expand Down

0 comments on commit 79cf7e0

Please sign in to comment.