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