Commit 60df808
committed
week_3: address review — warn loudly when pgvector backend runs on non-Postgres
Maintainer nit on OWASP#937: CRE_LIBRARIAN_RETRIEVER_BACKEND=pgvector is selectable
via env, but the embedding_vec column doesn't land until W8. Emit a loud
startup warning at pipeline-switch time when the backend is pgvector on a
non-Postgres (e.g. SQLite) database, since retrieve() would otherwise fail
with an opaque SQL error.1 parent 695a016 commit 60df808
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1067 | 1067 | | |
1068 | 1068 | | |
1069 | 1069 | | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1070 | 1080 | | |
1071 | 1081 | | |
1072 | 1082 | | |
| |||
0 commit comments