Interactive implementation of the Executor class. Supply it with the sources through which your data is received, the indices indicating the desired vector spaces, and optionally a vector database. The executor will create the spaces optimized for search.
Constructor
InteractiveExecutor(sources, indices, vector_database=None, context_data=None)
Parameters
sources
InteractiveSourceT | Sequence[InteractiveSourceT]
required
List of interactive sources.
indices
Index | Sequence[Index]
required
List of indices.
vector_database
VectorDatabase | None
default:"None"
Vector database instance. Defaults to InMemoryVectorDatabase.
context_data
Mapping[str, Mapping[str, ContextValue]] | None
default:"None"
Context data for execution. Defaults to None.
Inheritance
Inheritance Chain:
InteractiveExecutor
- →
Executor
- →
ABC
- →
Generic
Descendants
Methods
run()
Run the InteractiveExecutor. It returns an app that can accept queries.
Returns: An instance of InteractiveApp.