text

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	ID        uint
	ItemID    uint
	Start     uint
	Length    uint
	Text      string
	Embedding []float32
	Score     float64
}

type Text

type Text interface {
	ItemToChunks(itemID uint) ([]Chunk, error)
	ItemByID(itemID uint) (itembhl.ItemBHL, error)
}

func New

func New(cfg config.Config, stg storage.Storage) Text

Jump to

Keyboard shortcuts

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