Versions in this module Expand all Collapse all v0 v0.10.0 Jul 11, 2026 Changes in this version + func BuildDBResult(group DBFileGroup, annotations map[uint]*model.Annotation, terms []string, ...) ragindex.RetrieveResult + func DBCandidateLimit(limit int) int + func DBMatches(nodes []model.Node, annotations map[uint]*model.Annotation) []ragindex.SearchResult + func DBPath(filePath string) []string + func DBSummary(nodes []model.Node, annotations map[uint]*model.Annotation) string + func IsRetrievableNodeKind(kind model.NodeKind) bool + func MatchedTerms(query string) []string + func NodeMatchesTerms(node model.Node, terms []string) bool + func ScoreDBFields(nodes []model.Node, annotations map[uint]*model.Annotation, terms []string) (int, map[string]int, []string) + func TextContainsAnyTerm(text string, terms []string) bool + type ContentReader func(ctx context.Context, namespace, docPath string, limit int) (string, bool, error) + type DBFileGroup struct + FilePath string + Nodes []model.Node + func GroupCandidatesByFile(nodes []model.Node, limit int) ([]DBFileGroup, []uint) + type Response struct + Results []Result + type Result struct + Content string + ContentTruncated bool + type Service struct + ContentReader ContentReader + DB *gorm.DB + SearchBackend storesearch.Backend + func (s *Service) FromDB(ctx context.Context, namespace, query string, limit, contentLimit int, ...) (Response, error)