Documentation
¶
Index ¶
- type Config
- type Indexer
- type IndexerOption
- func WithAllParsers() IndexerOption
- func WithChunker(chunker core.SemanticChunker) IndexerOption
- func WithConcurrency(enabled bool) IndexerOption
- func WithEmbedding(embedder embedding.Provider) IndexerOption
- func WithExtractor(extractor core.EntityExtractor) IndexerOption
- func WithGraph(graphStore store.GraphStore) IndexerOption
- func WithLogger(logger logging.Logger) IndexerOption
- func WithMetrics(metrics core.Metrics) IndexerOption
- func WithParsers(parsers ...core.Parser) IndexerOption
- func WithStore(vectorStore core.VectorStore, docStore store.DocStore) IndexerOption
- func WithWatchDir(dirs ...string) IndexerOption
- func WithWorkers(workers int) IndexerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
Indexer is the unified interface for document indexing.
func DefaultIndexer ¶ added in v1.1.2
func DefaultIndexer(opts ...IndexerOption) Indexer
DefaultIndexer creates a default indexer with options.
func NewMultimodalGraphIndexer ¶
func NewMultimodalGraphIndexer( parsers []core.Parser, chunker core.SemanticChunker, embedder embedding.MultimodalProvider, entityExtractor core.EntityExtractor, vectorStore core.VectorStore, docStore store.DocStore, graphStore store.GraphStore, logger logging.Logger, metrics core.Metrics, opts ...IndexerOption, ) (Indexer, error)
NewMultimodalGraphIndexer creates an advanced multimodal and graph pipeline.
func NewVectorIndexer ¶
func NewVectorIndexer( parsers []core.Parser, chunker core.SemanticChunker, embedder embedding.Provider, vectorStore core.VectorStore, docStore store.DocStore, logger logging.Logger, metrics core.Metrics, opts ...IndexerOption, ) Indexer
NewVectorIndexer creates a simple text-vector pipeline.
type IndexerOption ¶ added in v1.1.2
type IndexerOption func(*defaultIndexer)
IndexerOption defines a function to configure the indexer.
func WithAllParsers ¶ added in v1.1.2
func WithAllParsers() IndexerOption
WithAllParsers enables all available parsers.
func WithChunker ¶ added in v1.1.2
func WithChunker(chunker core.SemanticChunker) IndexerOption
WithChunker sets the semantic chunker.
func WithConcurrency ¶ added in v1.1.2
func WithConcurrency(enabled bool) IndexerOption
WithConcurrency enables or disables concurrent indexing.
func WithEmbedding ¶ added in v1.1.2
func WithEmbedding(embedder embedding.Provider) IndexerOption
WithEmbedding sets the embedding provider.
func WithExtractor ¶ added in v1.1.2
func WithExtractor(extractor core.EntityExtractor) IndexerOption
WithExtractor sets the entity extractor.
func WithGraph ¶ added in v1.1.2
func WithGraph(graphStore store.GraphStore) IndexerOption
WithGraph sets the graph store.
func WithLogger ¶ added in v1.1.2
func WithLogger(logger logging.Logger) IndexerOption
WithLogger sets the logger.
func WithMetrics ¶ added in v1.1.2
func WithMetrics(metrics core.Metrics) IndexerOption
WithMetrics sets the metrics recorder.
func WithParsers ¶ added in v1.1.2
func WithParsers(parsers ...core.Parser) IndexerOption
WithParsers sets the parsers to use.
func WithStore ¶ added in v1.1.2
func WithStore(vectorStore core.VectorStore, docStore store.DocStore) IndexerOption
WithStore sets the vector and document stores.
func WithWatchDir ¶ added in v1.1.2
func WithWatchDir(dirs ...string) IndexerOption
WithWatchDir adds directories to watch for changes.
func WithWorkers ¶ added in v1.1.2
func WithWorkers(workers int) IndexerOption
WithWorkers sets the number of workers for concurrent indexing.