File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
sdk/nexent/vector_database Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -391,12 +391,6 @@ def forward(
391391 cached , str ) else str (type (cached ))
392392 logger .error (
393393 f"[{ self .request .id } ] FORWARD TASK: JSON decode error for key '{ redis_key } ': { str (jde )} ; raw_prefix={ raw_preview !r} " )
394- # Try to clean up corrupted Redis data
395- try :
396- client .delete (redis_key )
397- logger .info (f"[{ self .request .id } ] FORWARD TASK: Deleted corrupted Redis key '{ redis_key } '" )
398- except Exception as cleanup_e :
399- logger .warning (f"[{ self .request .id } ] FORWARD TASK: Failed to cleanup corrupted Redis key: { cleanup_e } " )
400394 raise
401395 else :
402396 # No busy-wait: release the worker slot and retry later
Original file line number Diff line number Diff line change @@ -70,9 +70,8 @@ def __init__(
7070 self ._settings_lock = threading .Lock ()
7171 self ._operation_counter = 0
7272
73- # Embedding API limits - Conservative settings for stability
74- # Different APIs have different limits, so we use a conservative approach
75- self .max_texts_per_batch = 50 # Very conservative for stability
73+ # Embedding API limits
74+ self .max_texts_per_batch = 2048
7675 self .max_tokens_per_text = 8192
7776 self .max_total_tokens = 100000
7877 self .max_retries = 3 # Number of retries for failed embedding batches
You can’t perform that action at this time.
0 commit comments