Haystack component with the name 'CustomComponent' not found. #4676
-
I have the following yaml-File with my custom component at the end (GetClientMessage) which I created:
I created the file with the method
When I start my Rest-Server with docker compose up it brings up an error: haystack.errors.PipelineSchemaError: Haystack component with the name 'GetClientMessage' not found. Check the class name of your component for spelling mistakes and make sure you installed Haystack with the proper extras: https://docs.haystack.deepset.ai/docs/installation#custom-installation I also tried to copy paste my code into rest_api/pipeline/custom_component.py My docker-compose.yml looks like this: `haystack-api:
` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I had to change my docker-compose.yml. I think my question is a duplicate to #3673 (comment) My new docker-compose.yml: services: haystack-api: |
Beta Was this translation helpful? Give feedback.
I had to change my docker-compose.yml. I think my question is a duplicate to #3673 (comment)
My new docker-compose.yml:
services:
haystack-api:
image: "deepset/haystack:cpu"
volumes:
- ./rest_api/rest_api/pipeline:/opt/venv/lib/python3.10/site-packages/rest_api/pipeline/
ports:
- 8000:8000
restart: on-failure
environment:
- DOCUMENTSTORE_PARAMS_HOST=elasticsearch
- PIPELINE_YAML_PATH=/opt/venv/lib/python3.10/site-packages/rest_api/pipeline/custompipeline.yaml