diff --git a/.env.template b/.env.template index 444f30b..ec33ee7 100644 --- a/.env.template +++ b/.env.template @@ -14,6 +14,7 @@ REDIS_ADDRESS=api REDIS_PORT=6379 REDIS_PASSWORD=redis-stack-password REDIS_ARGS=--requirepass $REDIS_PASSWORD +REDIS_PROTOCOL=redis:// BLOB_ACCOUNT_NAME=YOUR_AZURE_BLOB_STORAGE_ACCOUNT_NAME BLOB_ACCOUNT_KEY=YOUR_AZURE_BLOB_STORAGE_ACCOUNT_KEY BLOB_CONTAINER_NAME=YOUR_AZURE_BLOB_STORAGE_CONTAINER_NAME diff --git a/README.md b/README.md index 30f1069..f0d157d 100644 --- a/README.md +++ b/README.md @@ -278,6 +278,7 @@ Here is the explanation of the parameters: |REDIS_PASSWORD| redis-stack-password | OPTIONAL - Password for your Redis Stack| |REDIS_ARGS | --requirepass redis-stack-password | OPTIONAL - Password for your Redis Stack| |REDIS_PROTOCOL| redis:// | | +|QUEUE_NAME | doc-processing | | |CHUNK_SIZE | 500 | OPTIONAL: Chunk size for splitting long documents in multiple subdocs. Default value: 500 | |CHUNK_OVERLAP |100 | OPTIONAL: Overlap between chunks for document splitting. Default: 100 | |CONVERT_ADD_EMBEDDINGS_URL| http://batch/api/BatchStartProcessing | URL for Batch processing Function: "http://batch/api/BatchStartProcessing" for docker compose | diff --git a/demo/helper.py b/demo/helper.py index d9c8874..5949525 100644 --- a/demo/helper.py +++ b/demo/helper.py @@ -59,7 +59,6 @@ def get_semantic_answer(question): if len(res) == 0: return None, "No vectors matched, try a different question." - res_text = "\n".join(res['text'][0:number_of_embeddings_for_qna]) prompt = question_prompt.replace("_QUESTION_", question) prompt = f"{res_text}\n\n{prompt}"