tool_textconvert

package
v0.3.40 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFileToText

func ConvertFileToText(filename string) (response string, err error)

ConvertFileToText converts the content of a given file to text if the file type is supported. Supported file types are determined by their extensions, e.g., ".txt", ".pdf". It returns the file content as a string or an error if the conversion fails.

Types

type ToolTextConvertHelper added in v0.3.40

type ToolTextConvertHelper struct {
}

ToolTextConvertHelper provides utility functions to assist in converting and processing files in various formats to text format. Converted text must be passed to a chunker if RAG is required.

var ToolTextConvert *ToolTextConvertHelper

Jump to

Keyboard shortcuts

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