Documentation
¶
Index ¶
- type Config
- type Response
- type Source
- func (s *Source) Attach(ctx context.Context, db *db.Pool) (err error)
- func (s *Source) CreateEmbedding(ctx context.Context, input string) (types.Vector, error)
- func (s *Source) CreateEmbeddings(ctx context.Context, input []string) ([]types.Vector, error)
- func (s *Source) Definition() types.DataSource
- func (s *Source) Detach(ctx context.Context, db *db.Pool) error
- func (s *Source) Engine() engines.Engine
- func (s *Source) IsAttached() bool
- func (s *Source) Name() string
- func (s *Source) ReadOnly() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Data []struct { Embedding []float64 `json:"embedding"` } `json:"data"` }
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func (*Source) CreateEmbedding ¶
func (*Source) CreateEmbeddings ¶
func (*Source) Definition ¶
func (s *Source) Definition() types.DataSource
func (*Source) IsAttached ¶
Click to show internal directories.
Click to hide internal directories.