Documentation ¶
Index ¶
- func MakeEndpointOfDelete(s api.VectorStore) endpoint.Endpoint
- func MakeEndpointOfQuery(s api.VectorStore) endpoint.Endpoint
- func MakeEndpointOfUpsert(s api.VectorStore) endpoint.Endpoint
- func ValidateDeleteRequest(newSchema func(*DeleteRequest) validating.Schema) httpoption.Validator
- func ValidateQueryRequest(newSchema func(*QueryRequest) validating.Schema) httpoption.Validator
- func ValidateUpsertRequest(newSchema func(*UpsertRequest) validating.Schema) httpoption.Validator
- type DeleteRequest
- type DeleteResponse
- type QueryRequest
- type QueryResponse
- type UpsertRequest
- type UpsertResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeEndpointOfDelete ¶
func MakeEndpointOfDelete(s api.VectorStore) endpoint.Endpoint
MakeEndpointOfDelete creates the endpoint for s.Delete.
func MakeEndpointOfQuery ¶
func MakeEndpointOfQuery(s api.VectorStore) endpoint.Endpoint
MakeEndpointOfQuery creates the endpoint for s.Query.
func MakeEndpointOfUpsert ¶
func MakeEndpointOfUpsert(s api.VectorStore) endpoint.Endpoint
MakeEndpointOfUpsert creates the endpoint for s.Upsert.
func ValidateDeleteRequest ¶
func ValidateDeleteRequest(newSchema func(*DeleteRequest) validating.Schema) httpoption.Validator
ValidateDeleteRequest creates a validator for DeleteRequest.
func ValidateQueryRequest ¶
func ValidateQueryRequest(newSchema func(*QueryRequest) validating.Schema) httpoption.Validator
ValidateQueryRequest creates a validator for QueryRequest.
func ValidateUpsertRequest ¶
func ValidateUpsertRequest(newSchema func(*UpsertRequest) validating.Schema) httpoption.Validator
ValidateUpsertRequest creates a validator for UpsertRequest.
Types ¶
type DeleteRequest ¶
type DeleteResponse ¶
type DeleteResponse struct {
Err error `json:"-"`
}
func (*DeleteResponse) Body ¶
func (r *DeleteResponse) Body() interface{}
func (*DeleteResponse) Failed ¶
func (r *DeleteResponse) Failed() error
Failed implements endpoint.Failer.
type QueryRequest ¶
type QueryResponse ¶
type QueryResponse struct { Similarities []*api.Similarity `json:"similarities"` Err error `json:"-"` }
func (*QueryResponse) Body ¶
func (r *QueryResponse) Body() interface{}
func (*QueryResponse) Failed ¶
func (r *QueryResponse) Failed() error
Failed implements endpoint.Failer.
type UpsertRequest ¶
type UpsertResponse ¶
type UpsertResponse struct {
Err error `json:"-"`
}
func (*UpsertResponse) Body ¶
func (r *UpsertResponse) Body() interface{}
func (*UpsertResponse) Failed ¶
func (r *UpsertResponse) Failed() error
Failed implements endpoint.Failer.
Click to show internal directories.
Click to hide internal directories.