apache / airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
https://airflow.apache.org/
Apache License 2.0
36.63k stars 14.18k forks source link

Add batch_create_links method in Weaviate hook #42568

Open harjeevanmaan opened 1 week ago

harjeevanmaan commented 1 week ago

Description

Add the batch_create_links method in the Weaviate hook to allow users batch create links from an object to anothe object through cross-references.

An example will be:

data = {
                    "collection_name": "TestCollection1",
                    "from_property": "property1",
                    "from_uuid": 1234455,
                    "to_uuid": 1245555,
                }
weaviate_hook.batch_create_links(data)

Use case/motivation

Currently basic batch import is already implemented. Using this method, users can create links between objects and also assign tenant as a kwarg.

Related issues

No response

Are you willing to submit a PR?

Code of Conduct

Lee-W commented 1 week ago

https://github.com/apache/airflow/pull/42569 created for this issue. Removing needs-triage label.