Spaces:
Sleeping
Sleeping
Download app/services/memory/__init__.py from joelthomas77/VoxDoc: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/spaces/joelthomas77/VoxDoc/resolve/main/app/services/memory/__init__.py
- Command line
-
hf download hf://spaces/joelthomas77/VoxDoc/app/services/memory/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/joelthomas77/VoxDoc/resolve/main/app/services/memory/__init__.py
723 Bytes
| """ | |
| Cross-Session Memory Service (Phase 3) | |
| Provides persistent patient/session context that survives across | |
| multiple encounters. Uses Redis for fast session cache and PostgreSQL | |
| for durable long-term memory. | |
| Memory types: | |
| - **Session cache**: Active session state (Redis, TTL-based) | |
| - **Patient history**: Cross-encounter summaries (PostgreSQL) | |
| - **Entity memory**: Accumulated conditions/medications per patient | |
| - **Preference memory**: Patient communication preferences, language | |
| """ | |
| from app.services.memory.memory_service import ( | |
| MemoryService, | |
| get_memory_service, | |
| SessionCache, | |
| PatientMemory, | |
| ) | |
| __all__ = [ | |
| "MemoryService", | |
| "get_memory_service", | |
| "SessionCache", | |
| "PatientMemory", | |
| ] | |