Weaviate class

A class representing the Weaviate client with logging capabilities.

The weaviateUrl parameter is the URL of the Weaviate server. The logOptions parameter is an optional parameter representing the log options. The printer parameter is an optional parameter representing the log printer to use.

Use this class to interact with the Weaviate server and perform various operations, while logging important events and errors.

Mixed in types
  • UiLoggy

Constructors

Weaviate({required String weaviateUrl, LogOptions logOptions = const LogOptions(LogLevel.error, stackTraceLevel: LogLevel.off), LoggyPrinter printer = const PrettyPrinter(showColors: false)})
Creates a new instance of Weaviate.

Properties

hashCode int
The hash code for this object.
no setterinherited
loggy → Loggy<UiLoggy>
no setterinherited
rest WeaviateClient
The REST client used for making HTTP requests to the Weaviate server.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weaviateUrl String
The URL of the Weaviate server.
final

Methods

addSchema(SchemaClass schemaClass) Future<SchemaClass>
Adds a new schema class to the Weaviate server.
batchObjects(BatchObjectRequest batchObjectRequest) Future<List<WeaviateObject>>
Performs a batch operation to create multiple Weaviate objects.
deleteSchema(String className) Future<void>
Deletes a schema class from the Weaviate server.
getGraphQLClient() → GraphQLClient
The getGraphQLClient method can be used to retrieve the GraphQL client for interacting with the Weaviate server using GraphQL. @example
getMeta() Future<MetaResponse>
Retrieves the metadata information from the Weaviate server.
getSchema() Future<SchemaResponse>
Retrieves the schema information from the Weaviate server.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

accept String
The accept header value for JSON.
final
contentType String
The content type header value for JSON with UTF-8 encoding.
final