diff --git a/annotators/doc_retriever/service_configs/doc-retriever/environment.yml b/annotators/doc_retriever/service_configs/doc-retriever/environment.yml index 811873a62f..3964508e56 100644 --- a/annotators/doc_retriever/service_configs/doc-retriever/environment.yml +++ b/annotators/doc_retriever/service_configs/doc-retriever/environment.yml @@ -3,4 +3,6 @@ SERVICE_NAME: doc_retriever CONFIG_PATH: ./doc_retriever_config.json DOC_PATH_OR_LINK: http://files.deeppavlov.ai/dream_data/documents_for_qa/test_file_dream_repo.html,http://files.deeppavlov.ai/dream_data/documents_for_qa/alphabet_financial_report.txt,http://files.deeppavlov.ai/dream_data/documents_for_qa/test_file_jurafsky_chatbots.pdf PARAGRAPHS_NUM: 5 -FILE_SERVER_TIMEOUT: 30 \ No newline at end of file +FILE_SERVER_TIMEOUT: 30 +CUDA_VISIBLE_DEVICES: '0' +FLASK_APP: server diff --git a/annotators/doc_retriever/service_configs/doc-retriever/service.yml b/annotators/doc_retriever/service_configs/doc-retriever/service.yml index 03acff3daa..a53aa796d9 100644 --- a/annotators/doc_retriever/service_configs/doc-retriever/service.yml +++ b/annotators/doc_retriever/service_configs/doc-retriever/service.yml @@ -13,7 +13,8 @@ compose: DOC_PATH_OR_LINK: http://files.deeppavlov.ai/dream_data/documents_for_qa/test_file_dream_repo.html,http://files.deeppavlov.ai/dream_data/documents_for_qa/alphabet_financial_report.txt,http://files.deeppavlov.ai/dream_data/documents_for_qa/test_file_jurafsky_chatbots.pdf PARAGRAPHS_NUM: 5 FILE_SERVER_TIMEOUT: 30 - context: ./annotators/doc_retriever/ + context: . + dockerfile: annotators/doc_retriever/Dockerfile command: flask run -h 0.0.0.0 -p 8165 environment: - CUDA_VISIBLE_DEVICES=0 @@ -27,6 +28,7 @@ compose: volumes: - "./annotators/doc_retriever:/src" - "./common:/src/common" + - "./documents:/src/documents" ports: - 8165:8165 proxy: null diff --git a/components/jkb98534UUIjfdn67IN.yml b/components/jkb98534UUIjfdn67IN.yml index 9d5a013bb6..d95c5d2147 100644 --- a/components/jkb98534UUIjfdn67IN.yml +++ b/components/jkb98534UUIjfdn67IN.yml @@ -19,5 +19,5 @@ required_previous_services: null state_manager_method: update_attributes tags: null endpoint: train_and_upload_model -service: annotators/doc_retriever/service_configs/doc-retriver +service: annotators/doc_retriever/service_configs/doc-retriever date_created: "2023-06-14T11:46:20" diff --git a/components/nlknkn768678DUFYbcjk.yml b/components/nlknkn768678DUFYbcjk.yml index adcd90e46e..63a3ff69fe 100644 --- a/components/nlknkn768678DUFYbcjk.yml +++ b/components/nlknkn768678DUFYbcjk.yml @@ -15,9 +15,9 @@ connector: dialog_formatter: state_formatters.dp_formatters:utt_non_punct_dialog response_formatter: state_formatters.dp_formatters:simple_formatter_service previous_services: null -required_previous_services: annotators.train_and_upload_model +required_previous_services: [annotators.train_and_upload_model] state_manager_method: add_annotation tags: null endpoint: return_candidates -service: annotators/doc_retriever/service_configs/doc-retriver -date_created: "2023-06-14T12:45:32" \ No newline at end of file +service: annotators/doc_retriever/service_configs/doc-retriever +date_created: "2023-06-14T12:45:32"