package
Version:
v0.45.0
Opens a new window with list of versions in this module.
Published: Jan 30, 2026
License: MIT
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
¶
type RAGRequest struct {
Query string `json:"query"`
UserID string `json:"user_id"`
Model string `json:"model"`
TopK int `json:"top_k"`
}
type RAGResponse struct {
Results []RAGResult `json:"results"`
Query string `json:"query"`
Count int `json:"count"`
}
type RAGResult struct {
ID string `json:"id"`
Content string `json:"content"`
DocumentID string `json:"document_id"`
DocumentTitle string `json:"document_title"`
DocumentType string `json:"document_type"`
Similarity float64 `json:"similarity"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.