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
View Source
var SmartPDFConfig any
View Source
var SmartPDFGetter 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 ¶
type DefaultDocLoaderFuncOpts ¶
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 ¶
type UnsupportedFileTypeError struct {
FileType string
}
UnsupportedFileTypeError is returned when a file type is not supported
func (*UnsupportedFileTypeError) Error ¶
func (e *UnsupportedFileTypeError) Error() string
func (*UnsupportedFileTypeError) Is ¶
func (e *UnsupportedFileTypeError) Is(err error) bool
Click to show internal directories.
Click to hide internal directories.