documentloaders

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitLoader

type GitLoader struct {
	// contains filtered or unexported fields
}

GitLoader loads documents from a git repository on the local file system, filtering out common directories and binary files.

func NewGit

func NewGit(path string, registry parsers.ParserRegistry) *GitLoader

NewGit creates a new git repository loader for the specified path.

func (*GitLoader) Load

func (g *GitLoader) Load(ctx context.Context) ([]schema.Document, error)

Load walks the repository path recursively, loading all valid text files into Documents while skipping common build directories and binary files.

type Loader

type Loader interface {
	Load(ctx context.Context) ([]schema.Document, error)
}

Loader defines the interface for loading documents from various sources.

Jump to

Keyboard shortcuts

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