mirror of
https://github.com/james-m-jordan/morphik-core.git
synced 2025-05-09 19:32:38 +00:00
colpali hotfix
This commit is contained in:
parent
32a5d787fe
commit
989d25d8c7
@ -104,12 +104,12 @@ class DocumentService:
|
||||
query_embedding_regular, k=10 * k if should_rerank else k, doc_ids=doc_ids
|
||||
)
|
||||
|
||||
search_multi = use_colpali and self.colpali_vector_store and query_embedding_multivector is not None
|
||||
|
||||
chunks_multivector = (
|
||||
await self.colpali_vector_store.query_similar(
|
||||
query_embedding_multivector, k=k, doc_ids=doc_ids
|
||||
)
|
||||
if (use_colpali and self.colpali_vector_store and query_embedding_multivector)
|
||||
else []
|
||||
) if search_multi else []
|
||||
)
|
||||
|
||||
logger.info(f"Found {len(chunks)} similar chunks via regular embedding")
|
||||
|
Loading…
x
Reference in New Issue
Block a user