Module org.nasdanika.ai.cli
Package org.nasdanika.ai.cli
Class HnswIndexBuilderArgGroup<TVector,TDistance extends Comparable<TDistance>>
java.lang.Object
org.nasdanika.ai.cli.HnswIndexBuilderArgGroup<TVector,TDistance>
- Direct Known Subclasses:
HnswIndexBuilderFloatArgGroup
public abstract class HnswIndexBuilderArgGroup<TVector,TDistance extends Comparable<TDistance>>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<TId,TItem extends com.github.jelmerk.hnswlib.core.Item<TId, TVector>>
com.github.jelmerk.hnswlib.core.hnsw.HnswIndex<TId, TVector, TItem, TDistance> buildAndAddAll(int dimensions, Collection<TItem> items, io.opentelemetry.api.trace.Span span) createIndexBuilder(int dimensions, int maxItemCount) voidsetSpanAttributes(io.opentelemetry.api.trace.Span span)
-
Field Details
-
ef
-
efConstruction
-
m
-
removeEnabled
-
-
Constructor Details
-
HnswIndexBuilderArgGroup
public HnswIndexBuilderArgGroup()
-
-
Method Details
-
createIndexBuilder
public com.github.jelmerk.hnswlib.core.hnsw.HnswIndex.Builder<TVector,TDistance> createIndexBuilder(int dimensions, int maxItemCount) -
getDistanceFunction
protected abstract com.github.jelmerk.hnswlib.core.DistanceFunction<TVector,TDistance> getDistanceFunction() -
setSpanAttributes
-
buildAndAddAll
public <TId,TItem extends com.github.jelmerk.hnswlib.core.Item<TId, com.github.jelmerk.hnswlib.core.hnsw.HnswIndex<TId,TVector>> TVector, buildAndAddAllTItem, TDistance> (int dimensions, Collection<TItem> items, io.opentelemetry.api.trace.Span span) throws InterruptedException - Throws:
InterruptedException
-