Documentation
¶
Index ¶
- type Parser
- func (p *Parser) GetSupportedTypes() []string
- func (p *Parser) Parse(ctx context.Context, content []byte, metadata map[string]any) (*core.Document, error)
- func (p *Parser) ParseStream(ctx context.Context, r io.Reader, metadata map[string]any) (<-chan *core.Document, error)
- func (p *Parser) Supports(contentType string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser implements Visual RAG by using an LLM to describe images and EXIF to extract metadata.
func DefaultParser ¶ added in v1.1.3
DefaultParser creates a new Visual RAG image parser.
func (*Parser) GetSupportedTypes ¶
GetSupportedTypes returns the image extensions this parser supports.
func (*Parser) Parse ¶
func (p *Parser) Parse(ctx context.Context, content []byte, metadata map[string]any) (*core.Document, error)
Parse implements legacy core.Parser interface.
Click to show internal directories.
Click to hide internal directories.