Documentation
¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) Compact(ctx context.Context, content string, model string, targetTokens int, ...) (string, int32, int32, error)
- func (c *Client) DeleteVector(ctx context.Context, id string) (bool, error)
- func (c *Client) Embed(ctx context.Context, text string, model string) ([]float32, int32, error)
- func (c *Client) EmbedBatch(ctx context.Context, texts []string, model string) ([][]float32, []int32, error)
- func (c *Client) Ping(ctx context.Context) (string, error)
- func (c *Client) Rerank(ctx context.Context, query string, documents []string, topN int) ([]RerankResult, error)
- func (c *Client) SearchVectors(ctx context.Context, query []float32, topK int, threshold float64) ([]SearchResult, error)
- func (c *Client) StoreVector(ctx context.Context, id string, embedding []float32, content string, ...) (string, error)
- type RerankResult
- type SearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteVector ¶
func (*Client) EmbedBatch ¶
func (*Client) SearchVectors ¶
type RerankResult ¶
Click to show internal directories.
Click to hide internal directories.