Documentation
¶
Index ¶
Constants ¶
View Source
const EmbedModelMetadata = "cohere.embed.model"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChatResponse ¶
type RerankResponse ¶
type RerankResponse struct { ID string `json:"id"` Results []RerankResult `json:"results"` }
type RerankResult ¶
type RerankResult struct { Document struct { Text string `json:"text"` } `json:"document"` Index int `json:"index"` RelevanceScore float64 `json:"relevance_score"` }
func (RerankResult) String ¶
func (r RerankResult) String() string
Click to show internal directories.
Click to hide internal directories.