Documentation
¶
Index ¶
Constants ¶
View Source
const ( DistanceCosine = "cosine" DistanceDot = "dot" DistanceL2Squared = "l2-squared" DistanceManhattan = "manhattan" DistanceHamming = "hamming" // Set these defaults if the user leaves them blank DefaultVectorCacheMaxObjects = 1e12 DefaultDistanceMetric = DistanceCosine )
Variables ¶
This section is empty.
Functions ¶
func OptionalBoolFromMap ¶
func OptionalIntFromMap ¶
Tries to parse the int value from the map, if it overflows math.MaxInt64, it uses math.MaxInt64 instead. This is to protect from rounding errors from json marshalling where the type may be assumed as float64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.