You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -119,7 +112,7 @@ See available pipeline options via `keys(RAG_CONFIGURATIONS)`.
119
112
120
113
Logic:
121
114
- Updates the global `MODEL_CHAT` and `MODEL_EMBEDDING` to the requested models.
122
-
- Update the global `EMBEDDING_DIMENSION` for the requested embedding dimensionality after truncation (`embedding_dimension`).
115
+
- Updates the global `EMBEDDING_DIMENSION` for the requested embedding dimensionality after truncation (`embedding_dimension`).
123
116
- Updates the global `RAG_CONFIG` and `RAG_KWARGS` to the requested `option`.
124
117
- Updates the global `LOADED_CONFIG_KEY` to the configuration key for the given `option` and `kwargs` (used by the artifact system to download the correct knowledge packs).
## Do not set embedding dimensions, we might need to extract it from kwargs
145
+
147
146
## WARN about limited support for nomic-embed-text -- we need to create repeatable process
148
147
if model_embedding =="nomic-embed-text"
149
148
@warn"Knowledge packs for `nomic-embed-text` are currently not built automatically, so they might be missing / outdated. Please switch to OpenAI `text-embedding-3-large` for the best experience."
150
149
end
151
150
152
151
@asserthaskey(RAG_CONFIGURATIONS, option) "Invalid option: $option. Select one of: $(join(keys(RAG_CONFIGURATIONS),", "))"
153
-
@assert embedding_dimension in [0, 1024, 3072]"Invalid embedding_dimension: $(embedding_dimension). Supported: 0, 1024, 3072. See the available artifacts."
152
+
@assert(isnothing(embedding_dimension)||embedding_dimensionin [0, 1024])"Invalid embedding_dimension: $(embedding_dimension). Supported: 0 (no truncation) or 1024. See the available artifacts."
154
153
## Model-specific checks, they do not fail but at least warn
155
-
if model_embedding =="nomic-embed-text"&&!iszero(embedding_dimension)
0 commit comments