Versions in this module Expand all Collapse all v0 v0.1.0 Dec 2, 2026 Changes in this version + var Version = "dev" + type Config struct + ContentKey string + DatabaseURL string + EmbeddingsAPIKey string + EmbeddingsBaseURL string + EmbeddingsDim int + EmbeddingsDocPrefix string + EmbeddingsInputType bool + EmbeddingsModel string + EmbeddingsQueryInstruction string + HTTPAddr string + IndexInterval time.Duration + LogFormat string + LogLevel string + RerankAPI string + RerankAPIKey string + RerankBaseURL string + RerankCandidates int + RerankMinScore float32 + RerankModel string + func LoadConfig(envFile string) (Config, error) + func (c *Config) NewContentBox() (*store.Box, error) + func (c *Config) NewLogger() *slog.Logger + func (c *Config) NewProvider() (embed.Provider, error) + func (c *Config) NewRepo(db *pgxpool.Pool) (*store.Repo, error) + func (c *Config) NewReranker() (rerank.Provider, error) + func (c *Config) Validate() error + type Server struct + func NewServer(cfg *Config, provider embed.Provider) *Server + func (s *Server) Handler() http.Handler + func (s *Server) RunWorker(ctx context.Context) error + func (s *Server) Service() *service.Service + func (s *Server) Start(ctx context.Context, pool *pgxpool.Pool, logger *slog.Logger) error