Documentation ¶ Index ¶ type Embeder type Model func (m Model) FQN() string func (m Model) String() string type Request type Response Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Embeder ¶ type Embeder interface { Embed(embed Request) (*Response, error) } type Model ¶ type Model struct { Provider string `json:"provider"` Name string `json:"name"` Description string `json:"description,omitempty"` InputMaxTokens int `json:"input_max_tokens,omitempty"` OutputDimensions int `json:"output_dimensions,omitempty"` } func (Model) FQN ¶ func (m Model) FQN() string func (Model) String ¶ func (m Model) String() string type Request ¶ type Request struct { Ctx context.Context `json:"-"` Model Model `json:"model"` Text string `json:"text"` } type Response ¶ type Response struct { Embedding []float64 `json:"embedding"` Metadata models.Metadata `json:"metadata,omitempty"` } Source Files ¶ View all Source files models.go Click to show internal directories. Click to hide internal directories.