Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client for reading/writing Graph-based Nearest Neighbor Surface.
type Query ¶
type Query struct { K int `json:"k,omitempty"` EfSearch int `json:"efSearch,omitempty"` Distance float32 `json:"distance,omitempty"` Query []float32 `json:"query"` }
Query points in k-dimension space
type Result ¶
type Result struct { Took time.Duration `json:"took,omitempty"` Source optimum.Source `json:"source,omitempty"` Hits []Hit `json:"hits,omitempty"` }
Results from query
type Vector ¶
type Vector struct { UniqueKey []uint8 `json:"id,omitempty"` SortKey []uint8 `json:"sk,omitempty"` Vector []float32 `json:"v"` }
Vector representing point in k-dimension space
Click to show internal directories.
Click to hide internal directories.