search_component_definitions
Search component definitions by semantic similarity to find reusable components. Specify a query, limit results and Haystack version, then use the returned object ID elsewhere.
Instructions
Searches for components based on name or description using semantic similarity.
:param query: The search query
:param top_k: Maximum number of results to return (default: 5)
:param haystack_version: Optional version of Haystack to use.
Pass the same version as specified in the pipeline yaml's dependencies section for the haystack-ai package.
:returns: ComponentSearchResults model or error message string
The output is automatically stored and can be referenced in other functions.
Returns a formatted preview with an object ID (e.g., @obj_123).
Use the object store tools in combination with the object ID to view nested properties of the object.
Use the returned object ID to pass this result to other functions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| haystack_version | No |