Documentation ¶
Index ¶
- Variables
- func AsGolc(loader types.DocumentLoader) golcschema.DocumentLoader
- func AsLangchain(loader types.DocumentLoader) lcgodocloaders.Loader
- func FromGolc(loader golcschema.DocumentLoader) types.DocumentLoader
- func FromLangchain(loader lcgodocloaders.Loader) types.DocumentLoader
- func GetDocumentLoaderConfig(name string) (any, error)
- type ArchiveOpts
- type DefaultDocLoaderFuncOpts
- type LoaderFunc
- type UnsupportedFileTypeError
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 AsGolc ¶
func AsGolc(loader types.DocumentLoader) golcschema.DocumentLoader
func AsLangchain ¶
func AsLangchain(loader types.DocumentLoader) lcgodocloaders.Loader
func FromGolc ¶
func FromGolc(loader golcschema.DocumentLoader) types.DocumentLoader
func FromLangchain ¶
func FromLangchain(loader lcgodocloaders.Loader) types.DocumentLoader
func GetDocumentLoaderConfig ¶
Types ¶
type ArchiveOpts ¶ added in v0.4.12
type DefaultDocLoaderFuncOpts ¶ added in v0.4.12
type DefaultDocLoaderFuncOpts struct {
Archive ArchiveOpts
}
type LoaderFunc ¶
func DefaultDocLoaderFunc ¶
func DefaultDocLoaderFunc(filetype string, opts DefaultDocLoaderFuncOpts) LoaderFunc
func GetDocumentLoaderFunc ¶
func GetDocumentLoaderFunc(name string, config any) (LoaderFunc, error)
type UnsupportedFileTypeError ¶ added in v0.4.11
type UnsupportedFileTypeError struct {
FileType string
}
UnsupportedFileTypeError is returned when a file type is not supported
func (*UnsupportedFileTypeError) Error ¶ added in v0.4.11
func (e *UnsupportedFileTypeError) Error() string
func (*UnsupportedFileTypeError) Is ¶ added in v0.4.11
func (e *UnsupportedFileTypeError) Is(err error) bool
Click to show internal directories.
Click to hide internal directories.