MockedTextEmbedder
A test component that returns a mocked text embedding without calling any real embedding model.
Key Features
- Returns a fixed mock embedding for testing purposes only.
- Requires no model configuration or API credentials.
- Useful for testing pipelines without incurring embedding model costs.
- Not intended for production use.
Configuration
- Drag the
MockedTextEmbeddercomponent onto the canvas from the Component Library. - Click the component to open the configuration panel.
- Configure the parameters as needed.
Connections
MockedTextEmbedder outputs an embedding (a list of floats). Connect its output to an embedding retriever to test pipeline connectivity without calling a real embedding model.
Usage Example
components:
MockedTextEmbedder:
type: opensearch.tests.test_open_search_hybrid_retriever.MockedTextEmbedder
init_parameters:
Parameters
Inputs
| Parameter | Type | Default | Description |
|---|
Outputs
| Parameter | Type | Default | Description |
|---|---|---|---|
| embedding | list[float] | A mocked embedding vector. |
Init Parameters
These are the parameters you can configure in Pipeline Builder:
| Parameter | Type | Default | Description |
|---|
Run Method Parameters
These are the parameters you can configure for the component's run() method. This means you can pass these parameters at query time through the API, in Playground, or when running a job. For details, see Modify Pipeline Parameters at Query Time.
| Parameter | Type | Default | Description |
|---|
Was this page helpful?