mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-24 23:41:10 +02:00
- Add threading.Lock for thread-safe lazy initialization of models - Implement double-checked locking pattern in all initialization methods: - _initialize_embedding_model - _initialize_chunker - _initialize_code_chunker - _initialize_reranker - Remove unused _models_initialized variable - Consolidate RERANKERS_ENABLED check in _initialize_reranker - Remove redundant check from reranker_instance property Addresses PR #15 review feedback for thread-safety concerns |
||
|---|---|---|
| .. | ||
| agents | ||
| config | ||
| connectors | ||
| prompts | ||
| retriver | ||
| routes | ||
| schemas | ||
| services | ||
| tasks | ||
| utils | ||
| __init__.py | ||
| app.py | ||
| celery_app.py | ||
| db.py | ||
| users.py | ||