Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFileToText ¶
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
Click to show internal directories.
Click to hide internal directories.