Chat-RAG icon indicating copy to clipboard operation
Chat-RAG copied to clipboard

Make embedding device configurable instead of forcing GPU

Open saksham-jain177 opened this issue 11 months ago • 0 comments

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.

saksham-jain177 avatar Dec 29 '25 15:12 saksham-jain177