sqlitefts

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package sqlitefts implements the search.lexical capability backed by SQLite FTS5. Each namespace becomes a virtual FTS5 table; ingestion writes chunks alongside namespace, doc_id, and metadata fields. Queries return BM25-ranked hits with metadata.

The store consumes the engine's per-plugin storage capability (PluginContext.Storage). Default scope is session (per-conversation corpus); flip to agent or app scope via the `scope:` config knob for long-lived knowledge bases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() engine.Plugin

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin advertises the search.lexical capability. Namespaces map 1:1 to FTS5 virtual tables inside the plugin's scoped store.db.

func (*Plugin) Capabilities

func (p *Plugin) Capabilities() []engine.Capability

func (*Plugin) ConfigSchema

func (p *Plugin) ConfigSchema() []byte

ConfigSchema implements engine.ConfigSchemaProvider.

func (*Plugin) Dependencies

func (p *Plugin) Dependencies() []string

func (*Plugin) Emissions

func (p *Plugin) Emissions() []string

func (*Plugin) ID

func (p *Plugin) ID() string

func (*Plugin) Init

func (p *Plugin) Init(ctx engine.PluginContext) error

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) Ready

func (p *Plugin) Ready() error

func (*Plugin) Requires

func (p *Plugin) Requires() []engine.Requirement

func (*Plugin) Shutdown

func (p *Plugin) Shutdown(_ context.Context) error

func (*Plugin) Subscriptions

func (p *Plugin) Subscriptions() []engine.EventSubscription

func (*Plugin) Version

func (p *Plugin) Version() string

Jump to

Keyboard shortcuts

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