http

package
v0.0.0-...-aa8845d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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

func OASv2APIDoc(schema oas2.Schema) string

Types

type HTTPClient

type HTTPClient struct {
	// contains filtered or unexported fields
}

func NewHTTPClient

func NewHTTPClient(codecs httpcodec.Codecs, httpClient *http.Client, baseURL string) (*HTTPClient, error)

func (*HTTPClient) Delete

func (c *HTTPClient) Delete(ctx context.Context, vendor string, sourceIDs ...string) (err error)

func (*HTTPClient) Query

func (c *HTTPClient) Query(ctx context.Context, vendor string, vector []float64, topK int, minScore float64) (similarities []*api.Similarity, err error)

func (*HTTPClient) Upsert

func (c *HTTPClient) Upsert(ctx context.Context, vendor string, documents []*api.Document) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL