Documentation
¶
Index ¶
- Variables
- func GetFuncMap() template.FuncMap
- type ContextStats
- type PageData
- type RAGLogView
- type Renderer
- type RerankerCandidateView
- type RerankerLogView
- type RerankerReasoningEntry
- type RerankerToolCallTopicView
- type RerankerToolCallView
- type RerankerTopicSelectionView
- type TopicLogView
- type TopicView
Constants ¶
This section is empty.
Variables ¶
View Source
var StaticFS embed.FS
Functions ¶
func GetFuncMap ¶
Types ¶
type ContextStats ¶
type RAGLogView ¶
type RAGLogView struct {
storage.RAGLog
ParsedContext []openrouter.Message
ParsedResults interface{}
// New fields
SystemPromptPart string
UserFactsPart string
EnvFactsPart string
RAGContextPart string
LastMessages []openrouter.Message
ToolCalls []openrouter.Message
Stats ContextStats
}
func ParseRAGLog ¶
func ParseRAGLog(l storage.RAGLog) RAGLogView
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
type RerankerCandidateView ¶ added in v0.4.1
type RerankerCandidateView struct {
TopicID int64
Summary string
Score float32
Date string
MessageCount int
SizeChars int
Selected bool
Reason string // Reason for selection (from reranker response)
}
RerankerCandidateView is a single candidate for template display
type RerankerLogView ¶ added in v0.4.1
type RerankerLogView struct {
storage.RerankerLog
Candidates []RerankerCandidateView
ToolCalls []RerankerToolCallView
SelectedIDs map[int64]bool // For quick lookup in template
SelectedIDList []int64
SelectedTopics []RerankerTopicSelectionView // Full topic selection with reason/excerpt
Reasoning []RerankerReasoningEntry // Reasoning entries per iteration
}
RerankerLogView is the parsed view of a RerankerLog for templates
func ParseRerankerLog ¶ added in v0.4.1
func ParseRerankerLog(l storage.RerankerLog) RerankerLogView
ParseRerankerLog parses a RerankerLog into a view struct for templates
type RerankerReasoningEntry ¶ added in v0.4.5
RerankerReasoningEntry holds reasoning text for one iteration (matches rag.RerankerReasoningEntry)
type RerankerToolCallTopicView ¶ added in v0.4.1
RerankerToolCallTopicView contains topic info for tool call display
type RerankerToolCallView ¶ added in v0.4.1
type RerankerToolCallView struct {
Iteration int
Topics []RerankerToolCallTopicView
}
RerankerToolCallView represents one iteration of tool calls for template display
type RerankerTopicSelectionView ¶ added in v0.4.3
type RerankerTopicSelectionView struct {
ID int64
Reason string
Excerpt string // Empty string if none
SizeChars int // Original topic size in chars
ExcerptLen int // Length of excerpt (0 if no excerpt)
}
RerankerTopicSelectionView represents a selected topic with reason and optional excerpt
type TopicLogView ¶
type TopicLogView struct {
storage.RAGLog
ParsedTopics []rag.ExtractedTopic
ParseError string
InputMsgCount int
InputStartID int64
InputEndID int64
ChunkDate time.Time
}
func ParseTopicLog ¶
func ParseTopicLog(l storage.RAGLog) TopicLogView
Click to show internal directories.
Click to hide internal directories.