mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-25 14:41:20 +00:00
Fne, annotate chat synthesizer llm as LLM
This commit is contained in:
1 parent
4920bb6b2c
commit
c21f3371b6
1 file changed
+2
-1
@@ -22,6 +22,7 @@ from paperless_ai.prompts.context import ChatRefinePromptContext
|
||||
from paperless_ai.prompts.render import render_prompt
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from llama_index.core.llms import LLM
|
||||
from llama_index.core.response_synthesizers import BaseSynthesizer
|
||||
from llama_index.core.schema import NodeWithScore
|
||||
|
||||
@@ -206,7 +207,7 @@ async def _start_answer(
|
||||
|
||||
def _build_synthesizer(
|
||||
config: AIConfig,
|
||||
llm: object,
|
||||
llm: "LLM",
|
||||
output_language: str | None,
|
||||
*,
|
||||
chunk_size: int,
|
||||
|
||||
Reference in new issue
Block a user