java.lang.Object
org.nasdanika.rag.core.IndexStore<K,V,D>
- All Implemented Interfaces:
Store<K,V, D>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.nasdanika.rag.core.Store
Store.SearchResult<V,D> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndexStore(com.github.jelmerk.knn.hnsw.HnswIndex<V, K, IndexStore.IndexItem<V, K>, D> index, Iterable<Map.Entry<K, V>> entries, org.nasdanika.common.ProgressMonitor progressMonitor) IndexStore(com.github.jelmerk.knn.Index<V, K, IndexStore.IndexItem<V, K>, D> index) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected IndexStore.IndexItem<V,K> createItem(K key, V value) findNearest(K key, int limit) Returns values with distances for nearest keys.
-
Field Details
-
index
-
-
Constructor Details
-
IndexStore
-
IndexStore
-
-
Method Details