mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-03 09:28:25 +02:00
mypy fixes
This commit is contained in:
parent
3941111685
commit
cd198ba368
@ -17,6 +17,7 @@ from danswer.connectors.interfaces import GenerateDocumentsOutput
|
||||
from danswer.connectors.interfaces import LoadConnector
|
||||
from danswer.connectors.interfaces import PollConnector
|
||||
from danswer.connectors.interfaces import SecondsSinceUnixEpoch
|
||||
from danswer.connectors.models import BasicExpertInfo
|
||||
from danswer.connectors.models import ConnectorMissingCredentialError
|
||||
from danswer.connectors.models import Document
|
||||
from danswer.connectors.models import Section
|
||||
@ -130,7 +131,9 @@ class Document360Connector(LoadConnector, PollConnector):
|
||||
continue
|
||||
|
||||
authors = [
|
||||
{"name": author.get("name", "Unknown"), "email": author["email_id"]}
|
||||
BasicExpertInfo(
|
||||
display_name=author.get("name"), email=author["email_id"]
|
||||
)
|
||||
for author in article_details.get("authors", [])
|
||||
if author["email_id"]
|
||||
]
|
||||
|
@ -249,7 +249,7 @@ def semantic_reranking(
|
||||
|
||||
rerank_metrics_callback(
|
||||
RerankMetricsContainer(
|
||||
metrics=chunk_metrics, raw_similarity_scores=ranked_raw_scores
|
||||
metrics=chunk_metrics, raw_similarity_scores=ranked_raw_scores # type: ignore
|
||||
)
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user