We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3346ad1 commit 4eb4412Copy full SHA for 4eb4412
src/document_processor.py
@@ -49,7 +49,7 @@
49
50
ROOT_DIRECTORY = Path(__file__).parent
51
SOURCE_DIRECTORY = ROOT_DIRECTORY / "Docs_for_DB"
52
-INGEST_THREADS = max(2, os.cpu_count() - 8)
+INGEST_THREADS = max(2, os.cpu_count() - 12)
53
54
55
from typing import List
@@ -210,7 +210,7 @@ def load_documents(source_dir: Path) -> list:
210
n_workers = min(INGEST_THREADS, max(len(doc_paths), 1))
211
212
total_cores = os.cpu_count()
213
- threads_per_process = 1
+ threads_per_process = 2
214
215
with ProcessPoolExecutor(n_workers) as executor:
216
chunksize = math.ceil(len(doc_paths) / n_workers)
0 commit comments