Chat-RAG
Chat-RAG copied to clipboard
Make embedding device configurable instead of forcing GPU
Embedding models were previously forced onto GPU via set_device(0), which can
cause stale CUDA context errors in long-running sessions (as described in #6 ).
This change makes the embedding device configurable via the EMBEDDING_DEVICE
environment variable (default: CPU), while preserving optional GPU usage for
users who want it.