Discover Packages
github.com/wangle201210/go-rag/server
core
rerank
package
Version:
v0.0.0-...-0f488bb
Opens a new window with list of versions in this module.
Published: Sep 14, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Conf struct {
Model string `json:"model"`
ReturnDocuments bool `json:"return_documents"`
MaxChunksPerDoc int `json:"max_chunks_per_doc"`
OverlapTokens int `json:"overlap_tokens"`
}
type Data struct {
Query string `json:"query"`
Documents []string `json:"documents"`
TopN int `json:"top_n"`
}
type Resp struct {
ID string `json:"id"`
Results []*Result `json:"results"`
}
type Result struct {
Index int `json:"index"`
RelevanceScore float64 `json:"relevance_score"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.