From dc64bbc257dbadd6e005842e4a679b9835f4542e Mon Sep 17 00:00:00 2001 From: Josako Date: Tue, 18 Mar 2025 14:45:03 +0100 Subject: [PATCH] - Corrected old reference to catalog embedding model --- eveai_workers/tasks.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/eveai_workers/tasks.py b/eveai_workers/tasks.py index 84e3e04..cc3fe2a 100644 --- a/eveai_workers/tasks.py +++ b/eveai_workers/tasks.py @@ -231,12 +231,7 @@ def summarize_chunk(tenant, model_variables, document_version, chunk): def embed_chunks(tenant, catalog, document_version, chunks): - if catalog.embedding_model: - embedding_model, embedding_model_class = get_embedding_model_and_class(tenant.id, catalog.id, - catalog.embedding_model) - else: - raise EveAIInvalidEmbeddingModel(tenant.id, catalog.id) - + embedding_model, embedding_model_class = get_embedding_model_and_class(tenant.id, catalog.id) # Actually embed try: embeddings = embedding_model.embed_documents(chunks)