researchsemantic

package
v0.8.13 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultQueryTimeout = 15 * time.Second
View Source
const ReasonGenerationBusy semanticindex.StatusReason = "generation_busy"

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerationLease

type GenerationLease interface {
	Close() error
}

type GenerationLeaseAcquirer

type GenerationLeaseAcquirer func(context.Context) (GenerationLease, error)

type Hydrator

type Hydrator interface {
	HydrateRetrievalChunks(context.Context, []string) ([]store.RetrievalChunkEvidenceRow, error)
}

type Options

type Options struct {
	Profile   embedding.Profile
	Limit     int
	MaxChunks int
	Filters   semanticindex.Filters
	Timeout   time.Duration
}

type Retriever

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

func New

func New(provider embedding.Provider, searcher semanticindex.Searcher, hydrator Hydrator) *Retriever

func NewWithGenerationLease

func NewWithGenerationLease(provider embedding.Provider, searcher semanticindex.Searcher, hydrator Hydrator, acquire GenerationLeaseAcquirer) *Retriever

func (*Retriever) Close

func (r *Retriever) Close() error

Close releases optional native search resources. Exact searchers have no close operation, so the method is safe for every retriever configuration.

func (*Retriever) Retrieve

Jump to

Keyboard shortcuts

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