Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TransformerMap = map[string]types.DocumentTransformer{ "extra_metadata": &ExtraMetadata{}, "filter_markdown_docs_no_content": &FilterMarkdownDocsNoContent{}, "keywords": &KeywordExtractor{}, }
Functions ¶
func DefaultDocumentTransformers ¶
func DefaultDocumentTransformers(filetype string) (transformers []types.DocumentTransformer)
func GetTransformer ¶
func GetTransformer(name string) (types.DocumentTransformer, error)
Types ¶
type ExtraMetadata ¶
type FilterMarkdownDocsNoContent ¶
type FilterMarkdownDocsNoContent struct{}
FilterMarkdownDocsNoContent filters out Markdown documents with no content or only headings
TODO: this may be moved into the MarkdownTextSplitter
type GenericTransformer ¶
type KeywordExtractor ¶
func NewKeyWordExtractor ¶
func NewKeyWordExtractor(numKeywords int, llm llm.LLM) *KeywordExtractor
Click to show internal directories.
Click to hide internal directories.