Executor

Classes

Executor(sources: collections.abc.Sequence[~SourceT], indices: typing.Annotated[collections.abc.Sequence[superlinked.framework.dsl.index.index.Index], Is[TypeValidator.list_validator.validator]], vector_database: superlinked.framework.dsl.storage.vector_database.VectorDatabase, context: superlinked.framework.common.dag.context.ExecutionContext) : Abstract base class for an executor.

Initialize the Executor.
Args:
    sources (list[SourceT]): The list of sources.
    indices (list[Index]): The list of indices.
    vector_database (VectorDatabase): The vector database which the executor will use.
    context (Mapping[str, Mapping[str, Any]]): The context mapping.

### Ancestors (in MRO)

* abc.ABC
* typing.Generic

### Descendants

* superlinked.framework.dsl.executor.interactive.interactive_executor.InteractiveExecutor
* superlinked.framework.dsl.executor.rest.rest_executor.RestExecutor

### Methods

`run(self) ‑> superlinked.framework.dsl.app.app.App`
:   Abstract method to run the executor.
    Returns:
        App: An instance of App.

Last updated