Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

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

  1. Drag the MockedTextEmbedder component onto the canvas from the Component Library.
  2. Click the component to open the configuration panel.
  3. 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

ParameterTypeDefaultDescription

Outputs

ParameterTypeDefaultDescription
embeddinglist[float]A mocked embedding vector.

Init Parameters

These are the parameters you can configure in Pipeline Builder:

ParameterTypeDefaultDescription

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.

ParameterTypeDefaultDescription