Documentation
¶
Overview ¶
Package app assembles Recall service components (embedder, store, RAG pipeline, knowledge graph, reasoning engine, and the REST API server) from a config.Config. Both the recall-server and recall CLI entry points build their stacks through this package, so the two always agree on how a configuration maps to components.
Index ¶
- func BuildAPIServer(cfg *config.Config) (*api.Server, func(), error)
- func BuildAuthenticator(a config.AuthConfig) (api.Authenticator, error)
- func BuildEmbedder(e config.EmbedderConfig) (embedder.Embedder, error)
- func BuildStore(sc config.StoreConfig) (store.Store, error)
- func ChunkerFactory(k config.ChunkingConfig) chunker.Factory
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAPIServer ¶
BuildAPIServer assembles the full REST API service from cfg (store, pipeline, graph, reasoner, and HTTP server configuration, plus the authenticator when auth is enabled). The returned cleanup function releases backend resources.
func BuildAuthenticator ¶
func BuildAuthenticator(a config.AuthConfig) (api.Authenticator, error)
BuildAuthenticator assembles the API authenticator from config. API keys (plain and scoped) are always served by a single api.ScopedAPIKeyAuth so per-key namespace scopes are enforced; JWT auth is composed alongside it when configured.
func BuildEmbedder ¶
func BuildEmbedder(e config.EmbedderConfig) (embedder.Embedder, error)
BuildEmbedder constructs the configured embedding provider. API keys are never read from the config file: APIKeyEnv names the environment variable that holds the key.
func BuildStore ¶
func BuildStore(sc config.StoreConfig) (store.Store, error)
BuildStore opens the store described by sc ("memory" or "sqlite"). The sqlite backend requires sc.Path to be set.
func ChunkerFactory ¶
func ChunkerFactory(k config.ChunkingConfig) chunker.Factory
ChunkerFactory maps the configured strategy to a chunker factory.
Types ¶
type Service ¶
type Service struct {
// Store is the knowledge store (memory or SQLite).
Store store.Store
// Pipeline is the RAG pipeline over Store (citations enabled).
Pipeline *pipeline.RAGPipeline
// Graph is the knowledge graph store.
Graph store.GraphStore
// Reasoner is the multi-hop reasoning engine over Graph.
Reasoner *reasoning.Engine
}
Service is the assembled set of core components a Recall deployment runs: the store plus the RAG pipeline, knowledge graph, and reasoning engine built on top of it.