Error in C1M2_Ungraded_Lab_1

There is an error in the ungraded assignment “Vector embeddings in RAG”.

# Load the pre-trained sentence transformer model using the method .encode
model_name =  "BAAI/bge-base-en-v1.5"
local_model_path = os.path.abspath(os.path.join("..", "..", "..", "models", "model", model_name))

But the .encode method is used to encode the string, not to load the model

Indeed, the comment was misleading, the code was refactored in commit e42cbb2dd6bcbf6dd4b9edd2fd46b8ba122bb8c2 in the meantime yesterday.
The part of the code is now:

# Load the pre-trained sentence transformer model
model_name = "BAAI/bge-base-en-v1.5"

model = SentenceTransformer(os.path.join(os.environ['MODELS'],model_name))

Hope is clearer now @billyboe ?

Yes, thanks