app

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config    *config.Config
	DB        *db.DB
	Indexer   *indexer.Indexer
	Embedder  *indexer.Embedder // nil if no embedding provider configured
	BM25      *search.BM25
	Vector    *search.VectorSearch
	Hybrid    *search.Hybrid
	Asker     *search.Asker
	Generator providers.GenerationProvider // nil if not configured
}

App wires config, db, and services together.

func New

func New(ctx context.Context, cfgPath string) (*App, error)

New opens the database and wires all services.

func (*App) Close

func (a *App) Close() error

Close releases all resources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL