Merge pull request #66 from docker/tomasonjo-patch-1

Fix chains bug
This commit is contained in:
Tomaz Bratanic
2023-10-23 07:33:44 +02:00
committed by GitHub

View File

@@ -28,7 +28,7 @@ def load_embedding_model(embedding_model_name: str, logger=BaseLogger(), config=
embeddings = OpenAIEmbeddings()
dimension = 1536
logger.info("Embedding: Using OpenAI")
if embedding_model_name == "aws":
elif embedding_model_name == "aws":
embeddings = BedrockEmbeddings()
dimension = 1536
logger.info("Embedding: Using AWS")