Orchestrator
This module contains functionality related to the the orchestrator
module for embedding.orchestrators.basic
.
Orchestrator
BasicEmbeddingOrchestrator
Bases: BaseEmbeddingOrchestrator
A basic orchestrator for embedding pipeline processing.
This orchestrator implements a straightforward process that: 1. Fetches documents from a datasource 2. Splits documents into nodes 3. Embeds those nodes
Source code in src/embedding/orchestrators/basic/orchestrator.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
embed()
async
Execute the embedding process.
Asynchronously retrieves documents from the datasource, splits them into nodes using the configured splitter, and embeds those nodes with the configured embedder. Finally flushes any remaining embeddings.
Source code in src/embedding/orchestrators/basic/orchestrator.py
23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
BasicEmbeddingOrchestratorFactory
Bases: Factory
Factory for creating BasicEmbeddingOrchestrator instances.
Creates and configures orchestrators with appropriate datasources, splitters, and embedders based on the provided configuration.
Source code in src/embedding/orchestrators/basic/orchestrator.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|