document

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 1 Imported by: 1

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 types.Meta `json:"metadata"`
}

func (*Document) GetContent added in v0.0.10

func (d *Document) GetContent() string

GetContent returns the document content

func (*Document) GetEnrichedContent added in v0.0.10

func (d *Document) GetEnrichedContent() string

GetEnrichedContent returns the document content with the metadata appended

func (*Document) GetMetadata added in v0.0.10

func (d *Document) GetMetadata(key string) (interface{}, bool)

GetMetadata returns the document metadata

func (*Document) SetMetadata added in v0.0.10

func (d *Document) SetMetadata(key string, value interface{})

SetMetadata sets the document metadata key to value

Jump to

Keyboard shortcuts

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