Documentation
¶
Overview ¶
Package embedding adapts the standalone vector engine to WAS domain contracts.
Index ¶
- type Config
- type E5
- func (e *E5) Close() error
- func (e *E5) CountTokens(text string) (int, error)
- func (e *E5) EmbedPassages(ctx context.Context, passages []string, profile knowledge.Profile) ([][]float32, error)
- func (e *E5) EmbedQuery(ctx context.Context, query string, profile knowledge.Profile) ([]float32, error)
- func (e *E5) Ready(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type E5 ¶
type E5 struct {
// contains filtered or unexported fields
}
E5 translates WAS processing profiles and errors at the embedding seam.
func (*E5) CountTokens ¶
CountTokens returns the encoded passage length used by the vector engine.
func (*E5) EmbedPassages ¶
func (e *E5) EmbedPassages( ctx context.Context, passages []string, profile knowledge.Profile, ) ([][]float32, error)
EmbedPassages creates one normalized vector per passage for profile.
Click to show internal directories.
Click to hide internal directories.