Available on crate feature
tree-sitter
only.Expand description
Chunking code with tree-sitter and various tools
Modules§
- chunk_
code - Chunk code using tree-sitter
- compress_
code_ outline CompressCodeOutline
is a transformer that reduces the size of the outline of a the parent file of a chunk to make it more relevant to the chunk.- metadata_
qa_ code - Generate questions and answers based on code chunks and add them as metadata
- metadata_
refs_ defs_ code - Adds references and definitions found in code as metadata to chunks
- outline_
code_ tree_ sitter - Add the outline of the code in the given file to the metadata of a node, using tree-sitter.
- transformers
Structs§
- Code
Outliner - Generates a summary of a code file.
- Code
Outliner Builder - Builder for
CodeOutliner
. - Code
Parser - Code
Splitter - Splits code files into meaningful chunks
- Code
Splitter Builder - Builder for
CodeSplitter
. - Code
Tree - A code tree is a queryable representation of code
- References
AndDefinitions
Enums§
- Chunk
Size - Represents the size of a chunk, either as a fixed number of bytes or a range of bytes.
- Supported
Languages - Enum representing the supported programming languages in the Swiftide project.