KeyError thrown with Docker Compose if no params for DocumentStore is defined #3676
Closed
1 task done
Labels
Contributions wanted!
Looking for external contributions
P3
Low priority, leave it in the backlog
topic:docker
type:bug
Something isn't working
Describe the bug
I use
pipelines.haystack-pipeline.yml
file and define an indexing pipeline there. I don't need anyparams
for my DocumentStore. However, when I run thedocker-compose.yml
file,DOCUMENTSTORE_PARAMS_HOST
tries to override the host param of my DocumentStore and throws a KeyError.Error message
This error stems from
/haystack/pipelines/config.py
line wherecomponent_definition["params"][param_name] = value
. The presence ofcomponent_definition["params"]
should be checked first.Expected behavior
No error should be thrown and the host param of DocumentStore should be set without any problem
To Reproduce
pipelines.haystack-pipeline.yml
file as follows:DOCUMENTSTORE_PARAMS_HOST
value indocker-compose.yml
file under haystack-api environmentPIPELINE_YAML_PATH
if necessary. See Loading custom fine-tuned model in REST-API demo #3544 for details.docker-compose up
FAQ Check
System:
The text was updated successfully, but these errors were encountered: