Documentation
¶
Index ¶
- func Key(embedder string, options *option.Options) string
- func NewPDFSplitter(maxChunk int) fsplitter.Splitter
- func ResolveIndexPath(ctx context.Context, template string) string
- func WithIndexAsync(enabled bool) func(*Service)
- func WithIndexPathTemplate(template string) func(*Service)
- func WithIndexPathTemplateContext(ctx context.Context, template string) context.Context
- func WithLocalRoots(ctx context.Context, roots []LocalRoot) context.Context
- func WithLocalUpstreams(roots []LocalRoot, upstreams []LocalUpstream) func(*Service)
- func WithMCPManager(m *mcpmgr.Manager) func(*Service)
- func WithMCPSnapshotCacheRoot(template string) func(*Service)
- func WithMCPSnapshotManifestResolver(resolver mcpfs.SnapshotManifestResolver) func(*Service)
- func WithMCPSnapshotResolver(resolver mcpfs.SnapshotResolver) func(*Service)
- func WithMatchConcurrency(n int) func(*Service)
- func WithUpstreamSyncConcurrency(n int) func(*Service)
- type AugmentDocsInput
- type AugmentDocsOutput
- type DocsAugmenter
- type Document
- type Documents
- type LocalRoot
- type LocalUpstream
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPDFSplitter ¶
NewPDFSplitter returns a Splitter that extracts printable text and delegates to a size-based splitter for chunking.
func ResolveIndexPath ¶
ResolveIndexPath resolves an index path template using env overrides and defaults.
func WithIndexAsync ¶
WithIndexAsync toggles background indexing.
func WithIndexPathTemplate ¶
WithIndexPathTemplate sets the base path template for Embedius indexes.
func WithIndexPathTemplateContext ¶
WithIndexPathTemplateContext stores an index path template in context.
func WithLocalRoots ¶
WithLocalRoots attaches per-request local roots for upstream resolution.
func WithLocalUpstreams ¶
func WithLocalUpstreams(roots []LocalRoot, upstreams []LocalUpstream) func(*Service)
WithLocalUpstreams configures local resource upstreams and root bindings.
func WithMCPManager ¶
WithMCPManager attaches an MCP manager so the augmenter can index mcp: resources.
func WithMCPSnapshotCacheRoot ¶
WithMCPSnapshotCacheRoot sets the MCP snapshot cache root template.
func WithMCPSnapshotManifestResolver ¶
func WithMCPSnapshotManifestResolver(resolver mcpfs.SnapshotManifestResolver) func(*Service)
WithMCPSnapshotManifestResolver enables snapshot MD5 manifests when configured.
func WithMCPSnapshotResolver ¶
func WithMCPSnapshotResolver(resolver mcpfs.SnapshotResolver) func(*Service)
WithMCPSnapshotResolver enables snapshot-based MCP reads when available.
func WithMatchConcurrency ¶
WithMatchConcurrency sets the max number of concurrent match operations.
func WithUpstreamSyncConcurrency ¶
WithUpstreamSyncConcurrency sets the max number of concurrent upstream syncs.
Types ¶
type AugmentDocsInput ¶
type AugmentDocsInput struct {
Query string
Locations []string
Match *option.Options
Model string
DB string
MaxResponseSize int //size in byte
MaxDocuments int
Offset int
//based on meta['path'] include full path as long it does not go over //max response size
IncludeFile bool
TrimPath string //trim path prefix
// AllowPartial returns matches from successful roots even if others fail.
AllowPartial bool
}
func (*AugmentDocsInput) Init ¶
func (i *AugmentDocsInput) Init(ctx context.Context)
func (*AugmentDocsInput) Location ¶
func (i *AugmentDocsInput) Location(location string) string
type AugmentDocsOutput ¶
AugmentDocsOutput represents output from extraction
func (*AugmentDocsOutput) LoadDocuments ¶
type DocsAugmenter ¶
type DocsAugmenter struct {
// contains filtered or unexported fields
}
func NewDocsAugmenter ¶
type Document ¶
func (Document) ProjectDocument ¶
type Documents ¶
func (Documents) ProjectDocuments ¶
type LocalRoot ¶
type LocalRoot struct {
ID string
URI string
UpstreamRef string
SyncEnabled *bool
MinInterval int
Batch int
Shadow string
Force *bool
}
LocalRoot binds a non-MCP resource root to an upstream definition.
type LocalUpstream ¶
type LocalUpstream struct {
Name string
Driver string
DSN string
Shadow string
Batch int
Force bool
Enabled *bool
MinIntervalSeconds int
}
LocalUpstream defines a database used to sync local/workspace resources.
type Service ¶
type Service struct {
DocsAugmenters shared.Map[string, *DocsAugmenter]
// contains filtered or unexported fields
}
Service extracts structured information from LLM responses
func (*Service) AugmentDocs ¶
func (s *Service) AugmentDocs(ctx context.Context, input *AugmentDocsInput, output *AugmentDocsOutput) error
func (*Service) Method ¶
func (s *Service) Method(name string) (svc.Executable, error)
Method returns the specified method
func (*Service) Methods ¶
func (s *Service) Methods() svc.Signatures
Methods returns the service methods