documentloader

package
v0.4.10-gateway Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MuPDFConfig any
View Source
var MuPDFGetter func(config any) (LoaderFunc, error) = nil
View Source
var OpenAIOCRConfig any
View Source
var OpenAIOCRGetter func(config any) (LoaderFunc, error) = nil

Functions

func AsLangchain

func AsLangchain(loader types.DocumentLoader) lcgodocloaders.Loader

func DefaultDocLoaderFunc

func DefaultDocLoaderFunc(filetype string) func(ctx context.Context, reader io.Reader) ([]vs.Document, error)

func FromLangchain

func FromLangchain(loader lcgodocloaders.Loader) types.DocumentLoader

func GetDocumentLoaderConfig

func GetDocumentLoaderConfig(name string) (any, error)

Types

type LoaderFunc

type LoaderFunc func(ctx context.Context, reader io.Reader) ([]vs.Document, error)

func GetDocumentLoaderFunc

func GetDocumentLoaderFunc(name string, config any) (LoaderFunc, error)

Directories

Path Synopsis
pdf

Jump to

Keyboard shortcuts

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