Documentation
¶
Overview ¶
Package ask provides RAG-based Q&A functionality for repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AskOptions ¶
type AskOptions struct {
Question string
Repo string // optional full_name filter
Limit int // default 10
DB *sql.DB
EmbeddingProvider provider.EmbeddingProvider
LLMProvider provider.LLMProvider
}
AskOptions configures the Q&A query.
type AskResult ¶
type AskResult struct {
Answer string
Sources []SourceAttribution
Question string
InputTokens int
OutputTokens int
DurationMs int64
}
AskResult contains the Q&A result.
func AskQuestion ¶
AskQuestion performs RAG-based Q&A on repositories.
type SourceAttribution ¶
SourceAttribution represents a source used in the answer.
Click to show internal directories.
Click to hide internal directories.