mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-15 18:40:56 +02:00
Fix cartesian issue with index attempts (#2015)
This commit is contained in:
parent
73a92c046d
commit
a54ea9f9fa
@ -383,7 +383,8 @@ def count_unique_cc_pairs_with_successful_index_attempts(
|
|||||||
Then do distinct by connector_id and credential_id which is equivalent to the cc-pair. Finally,
|
Then do distinct by connector_id and credential_id which is equivalent to the cc-pair. Finally,
|
||||||
do a count to get the total number of unique cc-pairs with successful attempts"""
|
do a count to get the total number of unique cc-pairs with successful attempts"""
|
||||||
unique_pairs_count = (
|
unique_pairs_count = (
|
||||||
db_session.query(IndexAttempt.connector_credential_pair)
|
db_session.query(IndexAttempt.connector_credential_pair_id)
|
||||||
|
.join(ConnectorCredentialPair)
|
||||||
.filter(
|
.filter(
|
||||||
IndexAttempt.embedding_model_id == embedding_model_id,
|
IndexAttempt.embedding_model_id == embedding_model_id,
|
||||||
IndexAttempt.status == IndexingStatus.SUCCESS,
|
IndexAttempt.status == IndexingStatus.SUCCESS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user