package
Version:
v1.24.11
Opens a new window with list of versions in this module.
Published: May 7, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Data struct {
Index int `json:"index"`
RelevanceScore float64 `json:"relevance_score"`
Document Document `json:"document"`
}
type Document struct {
Text string `json:"text"`
}
type RankInput struct {
Documents []string `json:"documents"`
Query string `json:"query"`
Model string `json:"model"`
ReturnDocuments bool `json:"return_documents"`
Truncation bool `json:"truncation"`
}
type RankResponse struct {
ID string `json:"id"`
Data []Data `json:"data"`
Usage Usage `json:"usage"`
}
type Usage struct {
TotalTokens int `json:"total_tokens"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.