mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-21 22:16:44 +01:00
Backend streaming chat
This commit is contained in:
parent
4a28be233e
commit
e864a51497
5 changed files with 101 additions and 39 deletions
|
|
@ -48,7 +48,7 @@ def build_prompt_without_rag(document: Document) -> str:
|
|||
{filename}
|
||||
|
||||
CONTENT:
|
||||
{content[:8000]} # Trim to safe size
|
||||
{content[:8000]}
|
||||
"""
|
||||
|
||||
return prompt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue