Skip to content

Commit

Permalink
update logs
Browse files Browse the repository at this point in the history
  • Loading branch information
svilupp committed Aug 18, 2024
1 parent 5aaa3e1 commit fbdc88a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pipeline_defaults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function update_pipeline!(
@warn "Invalid configuration for knowledge packs! For `nomic-embed-text`, `embedding_dimension` must be 0. See the available artifacts."
end
if model_embedding == "text-embedding-3-large" &&
(embedding_dimension [1024, 0] || !isnothing(embedding_dimension))
!(embedding_dimension in [1024, 0] || isnothing(embedding_dimension))
@warn "Invalid configuration for knowledge packs! For `text-embedding-3-large`, `embedding_dimension` must be 0 or 1024. See the available artifacts."
end

Expand Down Expand Up @@ -184,7 +184,6 @@ function update_pipeline!(
## Update GLOBAL variables
MODEL_CHAT = model_chat
MODEL_EMBEDDING = model_embedding
@info embedding_dimension
EMBEDDING_DIMENSION = embedding_dimension

## Set the options
Expand Down

0 comments on commit fbdc88a

Please sign in to comment.