Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 v0.1.0 Jun 22, 2026 Changes in this version + type Chunk struct + Key string + Position int + Text string + type Chunker interface + Split func(ctx context.Context, text string) ([]Chunk, error) + func DefaultChunker() Chunker + type Embedder interface + EmbedTexts func(ctx context.Context, texts []string) ([][]float32, error) + type IngestRequest struct + CorpusID string + FileID string + Filename string + Text string + type IngestResult struct + Artifact storage.ArtifactRef + Chunks int + type ParagraphChunker struct + MaxChunkChars int + func (c ParagraphChunker) Split(_ context.Context, text string) ([]Chunk, error) + type Reranker interface + IsConfigured func() bool + Rerank func(ctx context.Context, query string, docs []string, topN int) (indices []int, scores []float32, err error) + type SearchRequest struct + CorpusID string + Filter map[string]any + HybridWeight float32 + Query string + TopK int + type SearchResponse struct + CorpusID string + Results []SearchResult + type SearchResult struct + Key string + Metadata map[string]string + Score float32 + Text string + type SemanticChunker struct + MaxChunkChars int + MinChunkChars int + Threshold float32 + func NewSemanticChunker(embedder Embedder, threshold float32) *SemanticChunker + func (c *SemanticChunker) Split(ctx context.Context, text string) ([]Chunk, error) + type Service struct + func NewService(artifacts storage.ArtifactStore, vectors vector.Store, embedder Embedder, ...) *Service + func (s *Service) DeleteFileChunks(ctx context.Context, namespace, artifactKey string, fromChunk, toChunk int) error + func (s *Service) DeleteNamespace(ctx context.Context, namespace string) error + func (s *Service) Ingest(ctx context.Context, request IngestRequest) (IngestResult, error) + func (s *Service) Search(ctx context.Context, request SearchRequest) (SearchResponse, error) + func (s *Service) SetReranker(r Reranker) + type VectorStore = vector.Store