Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmbedderPlugin ¶
EmbedderPlugin defines the interface for embedding provider plugins
type ParserPlugin ¶
ParserPlugin defines the interface for parser plugins
type Plugin ¶
type Plugin interface {
Name() string
Type() PluginType
Init(config map[string]interface{}) error
}
Plugin defines the interface for all plugins
type PluginType ¶
type PluginType string
PluginType defines the type of plugin
const ( // PluginTypeParser represents a document parser plugin PluginTypeParser PluginType = "parser" // PluginTypeVectorStore represents a vector store plugin PluginTypeVectorStore PluginType = "vectorstore" // PluginTypeEmbedder represents an embedding provider plugin PluginTypeEmbedder PluginType = "embedder" // PluginTypeLLM represents an LLM client plugin PluginTypeLLM PluginType = "llm" )
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry manages plugins
func (*Registry) GetByType ¶
func (r *Registry) GetByType(pluginType PluginType) []Plugin
GetByType returns all plugins of a specific type
type VectorStorePlugin ¶
type VectorStorePlugin interface {
Plugin
VectorStore(ctx context.Context) (vectorstore.Store, error)
}
VectorStorePlugin defines the interface for vector store plugins
Click to show internal directories.
Click to hide internal directories.