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 |
||
|---|---|---|
| .. | ||
| alembic | ||
| app | ||
| scripts | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .python-version | ||
| alembic.ini | ||
| celery_worker.py | ||
| Dockerfile | ||
| main.py | ||
| OLLAMA_MEMORY_OPTIMIZATION.md | ||
| pyproject.toml | ||
| uv.lock | ||