Skip to content

Loading custom fine-tuned model in REST-API demo #3544

Answered by bilgeyucel
Renuk9390 asked this question in Questions
Discussion options

You must be logged in to vote

Hi @Renuk9390,

I believe the problem you have is about the docker-compose.yml file. Currently, it is not picking up the changes from your updated pipelines.haystack-pipeline.yml file but uses the image provided in the file as deepset/haystack:cpu-main. There are specific changes that you need to make to change this behavior:

  1. Add volumes with the local path to the pipelines.haystack-pipeline.yml file:
    ...
      haystack-api:
        image: "deepset/haystack:cpu-main" 
        volumes:
          - /<path_to_haystack_repo>/haystack/rest_api/rest_api/pipeline:/home/user/rest_api/pipeline
    ...
  2. Update the PIPELINE_YAML_PATH value as /home/user/rest_api/pipeline/pipelines.haystack-pipeline.yml
    ...
    haystack-api:…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Renuk9390
Comment options

Answer selected by bilgeyucel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants