Versions in this module Expand all Collapse all v0 v0.1.1 Jun 25, 2026 v0.1.0 Jun 25, 2026 Changes in this version + type Document struct + Collection string + Hash string + ID string + Source string + Text string + Title string + URL string + UpdatedAt time.Time + type Embedder interface + Embed func(text string) []float64 + type Fetcher func(ctx context.Context, url string) (Document, error) + type Query struct + Collection string + Text string + TopK int + type Result struct + DocID string + Score float64 + Snippet string + Title string + URL string + type Service struct + func FromKernel(k *togo.Kernel) (*Service, bool) + func (s *Service) AddSource(src Source, fetch Fetcher) + func (s *Service) Crawl(ctx context.Context, name string) (bool, error) + func (s *Service) Documents(collection string) []*Document + func (s *Service) Ingest(ctx context.Context, d Document) (*Document, bool) + func (s *Service) Search(q Query) []Result + func (s *Service) Sources() []*Source + func (s *Service) WithEmbedder(e Embedder) *Service + type Source struct + Collection string + Cron string + Name string + URL string