Replies: 2 comments 1 reply
-
Got it working. This is the file hierarchy.
The docker-compose.yml file services:
haystack-api:
image: "deepset/haystack:cpu"
volumes:
- - ./:/opt/pipelines
ports:
- 8000:8000
restart: on-failure
environment:
- DOCUMENTSTORE_PARAMS_HOST=elasticsearch
- PIPELINE_YAML_PATH=/opt/pipelines/pipelines.haystack-pipeline.yml
- TOKENIZERS_PARALLELISM=false
# Uncomment the following line to customise how much time (in seconds) a worker can spend serving a request
# before it times out. This should include the time required to cache the models and setup the pipelines.
# - GUNICORN_CMD_ARGS="--timeout=3000"
depends_on:
elasticsearch:
condition: service_healthy
elasticsearch:
image: "elasticsearch:7.9.2"
ports:
- 9200:9200
restart: on-failure
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
healthcheck:
test: curl --fail http://localhost:9200/_cat/health || exit 1
interval: 10s
timeout: 1s
retries: 10 pipelines.haystack-pipeline.yml file version: ignore
components:
- name: DocumentStore
type: ElasticsearchDocumentStore
params:
embedding_dim: 384
- name: Retriever
type: EmbeddingRetriever
params:
document_store: DocumentStore
top_k: 10
embedding_model: sentence-transformers/all-MiniLM-L6-v2
- name: FileTypeClassifier
type: FileTypeClassifier
- name: TextFileConverter
type: TextConverter
- name: Preprocessor
type: PreProcessor
params:
split_by: word
split_length: 250
split_overlap: 30
split_respect_sentence_boundary: True
pipelines:
- name: query
nodes:
- name: Retriever
inputs: [Query]
- name: indexing
nodes:
- name: FileTypeClassifier
inputs: [File]
- name: TextFileConverter
inputs: [FileTypeClassifier.output_1]
- name: Preprocessor
inputs: [TextFileConverter]
- name: Retriever
inputs: [Preprocessor]
- name: DocumentStore
inputs: [Retriever] Just changed the docker Elasticsearch image to a newer one. Fixed the volume directory of the docker image to match the text in the toturial. Update or add 'ignore' the version number of the |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have updated my comment, you can look it up again. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am new to haystack and trying to implement NLP task with haystack.
While, doing rest api tutorial, I got a problem. rest_api_tutorial_link
I follow the all instructions on the tutorial. One difference is that the current haystack version is not matched with tutorial version (current version 1.15.1, tutorial version 1.12.1)
When I do
docker-compose up
with docker-compose.yml, the following is happened.The problem is that elasticsearch returns "status:420" which means too many request.
I tried to solve the problem with
thread_pool.write.queue_size=2000
, andthread_pool.write.size=64
but did not work.Is there anyone experiencing the same problem or finished the problem?
Your comment will be really helpful
Beta Was this translation helpful? Give feedback.
All reactions