SurfSense/surfsense_backend/app/config
Claude 3c0ef4c2fb
Add thread-safety to lazy initialization with double-checked locking
- 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
2025-11-18 23:22:06 +00:00
..
__init__.py Add thread-safety to lazy initialization with double-checked locking 2025-11-18 23:22:06 +00:00
global_llm_config.example.yaml Remove Google Analytics and Anthropic Claude from default configs 2025-11-17 21:42:57 +02:00
global_llm_config.yaml.template feat: Implement local-first European AI architecture with Mistral NeMo and TildeOpen 2025-11-17 19:58:20 +02:00
uvicorn.py Fixed all ruff lint and formatting errors 2025-07-24 14:43:48 -07:00