We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 601e8ea commit 720a387Copy full SHA for 720a387
ServiceBusQueueNewDocument/__init__.py
@@ -48,7 +48,7 @@ def main(msg: func.ServiceBusMessage):
48
49
logging.info(f"Generated {len(emb_documents)} emb chunks from doc {json_filename}")
50
51
- if (REDIS_ADDR is not None) and (REDIS_ADDR != ''):
+ if (REDIS_ADDR is not None) and (REDIS_ADDR != '') and (USE_REDIS_CACHE == 1):
52
loaded = helpers.load_embedding_docs_in_redis(emb_documents, document_name = json_filename)
53
logging.info(f"Loaded into Redis {loaded} emb chunks from doc {json_filename}")
54
print(f"Loaded into Redis {loaded} emb chunks from doc {json_filename}")
0 commit comments