docs

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package docs is the project's reference library: the files a person would hand a new engineer, made available to the fleet.

brain.Extract and brain.IngestDocument already turned a file into memories an agent could quote. Nothing stored a file, so nothing ever called them — the extraction work shipped as a library with no caller, which is the same as not shipping. This package is the half that was missing: upload, store, ingest, list, re-ingest, delete.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ingester

type Ingester interface {
	IngestDocument(ctx context.Context, ns string, d brain.Document, opts brain.ChunkOptions) (brain.IngestResult, error)
	ProjectNamespaceFor(ctx context.Context) string
	ForgetDocument(ctx context.Context, ns, name string) (int, error)
}

Ingester is the brain, narrowed to the two calls this package makes. *brain.Store satisfies it.

type Service

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

func New

func New(db *sql.DB, log *slog.Logger, b Ingester) *Service

func (*Service) Routes

func (s *Service) Routes(r chi.Router)

Jump to

Keyboard shortcuts

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