parser

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 2 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        string
	Content   string
	Metadata  map[string]string
	MediaType string // e.g., "text/plain", "image/jpeg", "image/png"
	MediaData []byte // Binary data for non-text content
}

Chunk represents a parsed document chunk

type Parser

type Parser interface {
	Parse(ctx context.Context, r io.Reader) ([]Chunk, error)
	SupportedFormats() []string
}

Parser defines the interface for document parsers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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