Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidUTF8File ¶
Based on a sample of the file, checks if the file contains valid UTF-8 encoding.
Types ¶
type Document ¶
A Document represents a text file from the project directory, such as `README.md`, to be included in the context sent to the LLM.
func LoadDocuments ¶
func LoadDocuments(projectPath string, excludePatterns []string, maxFileSize int64) ([]Document, error)
Given the project path, loads documents that will be included in the context sent to the LLM.
It accepts additional .gitignore glob patterns for files to be excluded and respects any .gitignore files in the project directory.
It excludes files whose size exceeds the maxFileSize argument.
Click to show internal directories.
Click to hide internal directories.