Interface EmbeddingStore
- All Known Implementing Classes:
InMemoryEmbeddingStore
public interface EmbeddingStore
Interface for storing and querying vector embeddings.
Essential for Retrieval-Augmented Generation (RAG) and Semantic Search.
- Since:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordRepresents a search result from the embedding store. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an embedding to the store.findNearest(float[] query, int maxResults) Finds the nearest neighbors to the query vector based on similarity.
-
Method Details
-
add
-
findNearest
Finds the nearest neighbors to the query vector based on similarity.- Parameters:
query- the search vector.maxResults- maximum number of results to return.- Returns:
- a list of search results.
-