Local Vector Store
Installation
Section titled “Installation”<dependency> <groupId>com.google.genkit</groupId> <artifactId>genkit-plugin-localvec</artifactId> <version>1.0.0-SNAPSHOT</version></dependency>The local vector store is ideal for development and testing. It stores vectors in local files.
import com.google.genkit.plugins.localvec.LocalVecPlugin;
Genkit genkit = Genkit.builder() .plugin(LocalVecPlugin.create()) .build();When to use
Section titled “When to use”- Local development and prototyping
- Unit testing RAG pipelines
- Quick experiments without external dependencies
For production, use Weaviate, PostgreSQL, Pinecone, or Firebase Firestore.
Sample
Section titled “Sample”See the rag sample.