Compile inference rules from config.
Compile an array of inference rules into executable validators. Validates rule name uniqueness before compilation.
The inference rule definitions.
Human-readable description of what this rule does.
Optionalmap?: JsonMapMapJsonMap transformation (inline or reference to named map).
JSON Schema object to match against document metadata.
Unique name for this inference rule.
Optionalrender?: {Declarative structured renderer configuration (mutually exclusive with template).
Ordered markdown body sections.
Keys to extract from context and include as YAML frontmatter.
Optionalschema?: (Array of schema references to merge (named refs and/or inline objects).
Optionaltemplate?: stringHandlebars template (inline string, named ref, or .hbs/.handlebars file path).
An array of compiled rules.
Create the HTTP API server.
Create the Fastify API server with all routes registered.
The returned instance is not yet listening — call server.listen() to start.
The server options.
A configured Fastify instance.
Create a document processor for file ingestion.
Create an embedding provider from config.
Create an embedding provider based on the given configuration.
Each provider is responsible for its own default dimensions.
The embedding configuration.
OptionalapiKey?: stringAPI key for the embedding provider.
OptionalchunkOverlap?: numberOverlap between chunks in tokens.
OptionalchunkSize?: numberMaximum tokens per chunk for splitting.
Optionalconcurrency?: numberMaximum concurrent embedding requests.
Optionaldimensions?: numberEmbedding vector dimensions.
The embedding model name.
The embedding model provider.
OptionalrateLimitPerMinute?: numberMaximum embedding requests per minute.
Optionallogger: Logger<never, boolean>Optional pino logger for retry warnings.
OptionaladditionalProviders: Map<string, ProviderFactory>Optional map of additional provider factories to register.
An EmbeddingProvider instance.
Create an event queue for batching file-system events.
Create a file-system watcher for the configured watch paths.
Create a pino logger instance.
Create a pino logger instance.
Optionalconfig: { file?: string; level?: string }Optional logging configuration.
Optionalfile?: stringLog file path.
Optionallevel?: stringLog level.
A configured pino logger.
Create a vector-store client for similarity search and upsert.
Load and validate a JeevesWatcherConfig from disk.
Component factories for JeevesWatcher. Override in tests to inject mocks.