package
Version:
v0.0.0-...-d39df66
Opens a new window with list of versions in this module.
Published: Dec 20, 2024
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Document struct {
Content string `json:"content,omitempty"`
Segments []Segment `json:"segments,omitempty"`
}
type RerankRequest struct {
Model string `json:"model"`
Query string `json:"query"`
Documents []string `json:"documents"`
Limit *int `json:"limit,omitempty"`
}
type RerankResponse struct {
Model string `json:"model"`
Results []Result `json:"results"`
}
type Result struct {
Index int `json:"index,omitempty"`
Score float64 `json:"score,omitempty"`
Document `json:",inline"`
}
type Segment struct {
Text string `json:"text"`
}
type SegmentRequest struct {
Content string `json:"content"`
SegmentLength *int `json:"segment_length"`
SegmentOverlap *int `json:"segment_overlap"`
}
type SummarizeRequest struct {
Model string `json:"model"`
Content string `json:"content"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.