Create a class schema in a Weaviate database.
type: "io.kestra.plugin.weaviate.schemacreate"Examples
Send schema creation request to a Weaviate database.
id: create_weaviate_schema
namespace: company.team
tasks:
- id: schema
type: io.kestra.plugin.weaviate.SchemaCreate
url: "https://demo-cluster-id.weaviate.network"
apiKey: "{{ secret('WEAVIATE_API_KEY') }}"
className: Movies
fields:
name:
- string
description:
- string
category:
- stringProperties
className*Requiredstring
1Class name where your data will be stored
url*Requiredstring
1Connection URL
Example: localhost: 8080 or https://cluster-id.weaviate.network
apiKeystring
API key to authenticate with a managed Weaviate cluster
If not provided, the anonymous authentication scheme will be used.
fieldsobject
Fields to add to the class
Requires specified field name and a list of data types that will be stored in this field
headersobject
Additional headers to add to the request e.g. to authenticate with OpenAI API
Outputs
successboolean
Indicates whether the schema creation was successful