Skip to content

Weaviate

<dependency>
<groupId>com.google.genkit</groupId>
<artifactId>genkit-plugin-weaviate</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
import com.google.genkit.plugins.weaviate.WeaviatePlugin;
Genkit genkit = Genkit.builder()
.plugin(WeaviatePlugin.createLocal("http://localhost:8080"))
.build();
Genkit genkit = Genkit.builder()
.plugin(WeaviatePlugin.createCloud(
"https://your-cluster.weaviate.network",
"your-api-key"))
.build();
  • Configurable distance measures (COSINE, L2_SQUARED, DOT)
  • Batch indexing
  • Automatic collection creation
  • Flexible retrieval

See the weaviate sample.