Versions in this module Expand all Collapse all v0 v0.1.0 Jun 25, 2026 Changes in this version + func RegisterStore(name string, f StoreFactory) + type Chunk struct + DocID string + ID string + Score float32 + Text string + Vector []float32 + type Service struct + func FromKernel(k *togo.Kernel) (*Service, bool) + func (s *Service) Answer(ctx context.Context, query string, topK int) (string, []Chunk, error) + func (s *Service) Delete(ctx context.Context, docID string) error + func (s *Service) Ingest(ctx context.Context, docID, text string) (int, error) + func (s *Service) Retrieve(ctx context.Context, query string, topK int) ([]Chunk, error) + type Store interface + Delete func(ctx context.Context, docID string) error + Search func(ctx context.Context, vector []float32, topK int) ([]Chunk, error) + Upsert func(ctx context.Context, chunks []Chunk) error + type StoreFactory func(k *togo.Kernel) (Store, error)