structured

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Structured

type Structured struct{}

func (*Structured) Load

func (s *Structured) Load(ctx context.Context, reader io.Reader) ([]vs.Document, error)

type StructuredInput

type StructuredInput struct {
	Metadata  map[string]any            `json:"metadata"`
	Documents []StructuredInputDocument `json:"documents"`
}

type StructuredInputDocument

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

Jump to

Keyboard shortcuts

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