Documentation ¶
Index ¶
- func NewHTTPRouter(svc api.VectorStore, codecs httpcodec.Codecs, opts ...httpoption.Option) chi.Router
- func OASv2APIDoc(schema oas2.Schema) string
- type HTTPClient
- func (c *HTTPClient) Delete(ctx context.Context, vendor string, sourceIDs ...string) (err error)
- func (c *HTTPClient) Query(ctx context.Context, vendor string, vector []float64, topK int, ...) (similarities []*api.Similarity, err error)
- func (c *HTTPClient) Upsert(ctx context.Context, vendor string, documents []*api.Document) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPRouter ¶
func NewHTTPRouter(svc api.VectorStore, codecs httpcodec.Codecs, opts ...httpoption.Option) chi.Router
func OASv2APIDoc ¶
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
func NewHTTPClient ¶
Click to show internal directories.
Click to hide internal directories.