Weaviate
Installation
Section titled “Installation”<dependency> <groupId>com.google.genkit</groupId> <artifactId>genkit-plugin-weaviate</artifactId> <version>1.0.0-SNAPSHOT</version></dependency>Local Docker deployment
Section titled “Local Docker deployment”import com.google.genkit.plugins.weaviate.WeaviatePlugin;
Genkit genkit = Genkit.builder() .plugin(WeaviatePlugin.createLocal("http://localhost:8080")) .build();Weaviate Cloud
Section titled “Weaviate Cloud”Genkit genkit = Genkit.builder() .plugin(WeaviatePlugin.createCloud( "https://your-cluster.weaviate.network", "your-api-key")) .build();Features
Section titled “Features”- Configurable distance measures (COSINE, L2_SQUARED, DOT)
- Batch indexing
- Automatic collection creation
- Flexible retrieval
Sample
Section titled “Sample”See the weaviate sample.