Documentation
¶
Index ¶
- type Chunk
- type Processor
- func (p *Processor) ChunkText(text string, size, overlap int, respectWordBoundaries bool) []Chunk
- func (p *Processor) CollectFiles(paths []string) ([]string, error)
- func (p *Processor) FileHash(path string) (string, error)
- func (p *Processor) Matches(path string, patterns []string) (bool, error)
- func (p *Processor) ProcessFile(path string, chunkSize, overlap int, respectWordBoundaries bool) ([]Chunk, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor struct{}
Processor handles document processing
func (*Processor) CollectFiles ¶
CollectFiles recursively collects all files from given paths Skips paths that don't exist instead of returning an error
Click to show internal directories.
Click to hide internal directories.