mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 17:05:41 +01:00
fix: mypy/black
This commit is contained in:
parent
0cd016a732
commit
4b5c3362f1
4 changed files with 20 additions and 18 deletions
|
|
@ -90,9 +90,9 @@ class SummarizeService:
|
|||
# Add context documents to summarize
|
||||
if use_context:
|
||||
# 1. Recover all ref docs
|
||||
ref_docs: dict[
|
||||
str, RefDocInfo
|
||||
] | None = self.storage_context.docstore.get_all_ref_doc_info()
|
||||
ref_docs: dict[str, RefDocInfo] | None = (
|
||||
self.storage_context.docstore.get_all_ref_doc_info()
|
||||
)
|
||||
if ref_docs is None:
|
||||
raise ValueError("No documents have been ingested yet.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue