孩子们,知识库的高并发太恐怖了

This commit is contained in:
tt-P607
2025-10-19 14:11:45 +08:00
parent 4f2cb56740
commit 88a4b01556
2 changed files with 3 additions and 3 deletions

View File

@@ -204,7 +204,7 @@ def extract_information(paragraphs_dict, model_set):
failed_hashes, open_ie_docs = [], []
with ThreadPoolExecutor(max_workers=5) as executor:
with ThreadPoolExecutor(max_workers=3) as executor:
f_to_hash = {
executor.submit(extract_info_sync, p_hash, p, model_set): p_hash
for p_hash, p in paragraphs_dict.items()