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) 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 ¶ added in v1.9.16
type Processor struct{}
Processor handles document processing
func (*Processor) CollectFiles ¶ added in v1.9.16
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.