mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 21:16:56 +01:00
Just use the built-in ollama LLM class of course
This commit is contained in:
parent
a9ed46de11
commit
bb3336f7bc
6 changed files with 38 additions and 379 deletions
|
|
@ -70,5 +70,4 @@ def stream_chat_with_documents(query_str: str, documents: list[Document]):
|
|||
|
||||
response_stream = query_engine.query(prompt)
|
||||
|
||||
for chunk in response_stream.response_gen:
|
||||
yield chunk.text
|
||||
yield from response_stream.response_gen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue