Documentation ¶
Index ¶
- type Client
- func (c *Client) BaseURL() string
- func (c *Client) Delete(request *DeleteRequest) (*DeleteResponse, error)
- func (c *Client) DescribeIndexStats(request *DescribeIndexStatsRequest) (*DescribeIndexStatsResponse, error)
- func (c *Client) Fetch(request *FetchRequest) (*FetchResponse, error)
- func (c *Client) GetHeaders() map[string]string
- func (c *Client) Query(request *QueryRequest) (*QueryResponse, error)
- func (c *Client) Update(request *UpdateRequest) (*UpdateResponse, error)
- func (c *Client) Upsert(request *UpsertRequest) (*UpsertResponse, error)
- type Config
- type DeleteRequest
- type DeleteResponse
- type DescribeIndexStatsRequest
- type DescribeIndexStatsResponse
- type Detail
- type ErrorResponse
- type FetchRequest
- type FetchResponse
- type QueryRequest
- type QueryResponse
- type SparseVector
- type UpdateRequest
- type UpdateResponse
- type UpsertRequest
- type UpsertResponse
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Config Resty *resty.Client }
func (*Client) Delete ¶
func (c *Client) Delete(request *DeleteRequest) (*DeleteResponse, error)
func (*Client) DescribeIndexStats ¶
func (c *Client) DescribeIndexStats(request *DescribeIndexStatsRequest) (*DescribeIndexStatsResponse, error)
func (*Client) Fetch ¶
func (c *Client) Fetch(request *FetchRequest) (*FetchResponse, error)
func (*Client) GetHeaders ¶
func (*Client) Query ¶
func (c *Client) Query(request *QueryRequest) (*QueryResponse, error)
func (*Client) Update ¶
func (c *Client) Update(request *UpdateRequest) (*UpdateResponse, error)
func (*Client) Upsert ¶
func (c *Client) Upsert(request *UpsertRequest) (*UpsertResponse, error)
type DeleteRequest ¶
type DeleteResponse ¶
type DeleteResponse struct {
Result map[string]interface{}
}
type DescribeIndexStatsRequest ¶
type DescribeIndexStatsRequest struct {
Filter *map[string]interface{} `json:"filter,omitempty"`
}
type ErrorResponse ¶ added in v0.0.3
type FetchRequest ¶
type FetchResponse ¶
type QueryRequest ¶
type QueryRequest struct { Namespace *string `json:"namespace,omitempty"` Filter *map[string]interface{} `json:"filter,omitempty"` TopK int64 `json:"topK,omitempty"` IncludeValues *bool `json:"includeValues,omitempty"` IncludeMetadata *bool `json:"includeMetadata,omitempty"` Vector *[]float32 `json:"vector,omitempty"` SparseVector *[]SparseVector `json:"sparseVector,omitempty"` ID *string `json:"id,omitempty"` }
type QueryResponse ¶
type SparseVector ¶
type UpdateRequest ¶
type UpdateRequest struct { ID string `json:"id,omitempty"` Score *float32 `json:"score,omitempty"` Values *[]float32 `json:"values,omitempty"` SparseValues *[]SparseVector `json:"sparseValues,omitempty"` SetMetadata *map[string]interface{} `json:"setMetadata,omitempty"` Namespace *string `json:"namespace,omitempty"` }
type UpdateResponse ¶
type UpdateResponse struct {
Result *map[string]interface{}
}
type UpsertRequest ¶
type UpsertResponse ¶
type UpsertResponse struct {
UpsertedCount int64 `json:"upsertedCount,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.