document

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Content  string         `json:"content"`
	Metadata map[string]any `json:"metadata"`
}

Document stores data and associated metadata.

type Splitter

type Splitter interface {
	Split(Document) []string
}

Splitter splits documents into chunks.

type Transformer

type Transformer interface {
	Transform(Document) Document
}

Transformer transform a Document and returns it.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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