mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 16:51:17 +00:00
fix
This commit is contained in:
parent
cb9e76c7f9
commit
bc6f23f82f
@ -206,7 +206,9 @@ def update_reranking_model(
|
|||||||
self.ckpt = Checkpoint(name, colbert_config=ColBERTConfig())
|
self.ckpt = Checkpoint(name, colbert_config=ColBERTConfig())
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def calculate_similarity_scores(query_embeddings, document_embeddings):
|
def calculate_similarity_scores(
|
||||||
|
self, query_embeddings, document_embeddings
|
||||||
|
):
|
||||||
# Validate dimensions to ensure compatibility
|
# Validate dimensions to ensure compatibility
|
||||||
if query_embeddings.dim() != 3:
|
if query_embeddings.dim() != 3:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
|
Loading…
Reference in New Issue
Block a user