SchemaCreate SchemaCreate

yaml
type: "io.kestra.plugin.weaviate.SchemaCreate"

Create a class schema in a Weaviate database.

Examples

Send schema creation request to a Weaviate database.

yaml
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:
        - string

Properties

className

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

Class name where your data will be stored

url

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

Connection URL

Example: localhost:8080 or https://cluster-id.weaviate.network

apiKey

  • Type: string
  • Dynamic: ✔️
  • Required:

API key to authenticate with a managed Weaviate cluster

If not provided, the anonymous authentication scheme will be used.

fields

  • Type: object
  • SubType: array
  • Dynamic: ✔️
  • Required:

Fields to add to the class

Requires specified field name and a list of data types that will be stored in this field

headers

  • Type: object
  • SubType: string
  • Dynamic: ✔️
  • Required:

Additional headers to add to the request e.g. to authenticate with OpenAI API

Outputs

success

  • Type: boolean
  • Required:

Indicates whether the schema creation was successful

Was this page helpful?