Repository navigation
Commit 8902f36
committed
🐛 fix: only parse RAG_DISTANCE_THRESHOLD under pgvector
Same class of bug codex caught on #287's EMBEDDINGS_DIMENSIONS: the
float() cast ran unconditionally at import, so a stale or templated
non-numeric value would prevent startup for atlas-mongo deployments
where the setting is already documented as ignored. Gate the parse
on VECTOR_DB_TYPE=pgvector so Atlas boots cleanly regardless of the
env var value.1 parent b055db6 commit 8902f36
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
231 | 234 | | |
232 | 235 | | |
233 | 236 | | |
| |||
0 commit comments