Documentation
¶
Index ¶
- type Config
- type Source
- func (s *Source) Attach(ctx context.Context, db *db.Pool) (err error)
- func (s *Source) CreateEmbedding(ctx context.Context, input string) (*sources.EmbeddingResult, error)
- func (s *Source) CreateEmbeddings(ctx context.Context, input []string) (*sources.EmbeddingsResult, 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) ModelInfo() sources.ModelInfo
- 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 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.