Update page_files/categorized/Backend/PDF_DataExtraction.py
Browse files
page_files/categorized/Backend/PDF_DataExtraction.py
CHANGED
|
@@ -173,7 +173,6 @@ def _prewarm_embed_model() -> None:
|
|
| 173 |
except Exception as e:
|
| 174 |
log.warning(f"Embed model pre-warm failed: {e}")
|
| 175 |
|
| 176 |
-
threading.Thread(target=_prewarm_embed_model, daemon=True).start()
|
| 177 |
# ββ Batching βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 178 |
|
| 179 |
# ββ Adaptive config (probed at startup, falls back to safe defaults) ββββββ
|
|
@@ -659,6 +658,7 @@ def _get_embed_model() -> Any:
|
|
| 659 |
log.info("Embedding model ready.")
|
| 660 |
return _embed_model
|
| 661 |
|
|
|
|
| 662 |
|
| 663 |
def _get_chroma_collection() -> Any:
|
| 664 |
global _chroma_client, _chroma_collection
|
|
|
|
| 173 |
except Exception as e:
|
| 174 |
log.warning(f"Embed model pre-warm failed: {e}")
|
| 175 |
|
|
|
|
| 176 |
# ββ Batching βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 177 |
|
| 178 |
# ββ Adaptive config (probed at startup, falls back to safe defaults) ββββββ
|
|
|
|
| 658 |
log.info("Embedding model ready.")
|
| 659 |
return _embed_model
|
| 660 |
|
| 661 |
+
threading.Thread(target=_prewarm_embed_model, daemon=True).start()
|
| 662 |
|
| 663 |
def _get_chroma_collection() -> Any:
|
| 664 |
global _chroma_client, _chroma_collection
|