Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmz-001 committed Sep 11, 2023
1 parent 3b349f2 commit 249679a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion knowledge_gpt/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
def pop_docs_upto_limit(
query: str, chain: StuffDocumentsChain, docs: List[Document], max_len: int
) -> List[Document]:
"""Pops documents from a list until the final prompt length is less than the max length."""
"""Pops documents from a list until the final prompt length is less
than the max length."""

token_count: int = chain.prompt_length(docs, question=query) # type: ignore

Expand Down

0 comments on commit 249679a

Please sign in to comment.