mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 17:05:41 +01:00
fix: add source divider
This commit is contained in:
parent
0eb24a54ec
commit
4ca3938a66
1 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ AVATAR_BOT = THIS_DIRECTORY_RELATIVE / "avatar-bot.ico"
|
||||||
|
|
||||||
UI_TAB_TITLE = "My Private GPT"
|
UI_TAB_TITLE = "My Private GPT"
|
||||||
|
|
||||||
SOURCES_SEPARATOR = "\n\n Sources: \n"
|
SOURCES_SEPARATOR = "<hr>Sources: \n"
|
||||||
|
|
||||||
MODES = ["Query Files", "Search Files", "LLM Chat (no context from files)"]
|
MODES = ["Query Files", "Search Files", "LLM Chat (no context from files)"]
|
||||||
|
|
||||||
|
|
@ -107,6 +107,7 @@ class PrivateGptUi:
|
||||||
+ f"{index}. {source.file} (page {source.page}) \n\n"
|
+ f"{index}. {source.file} (page {source.page}) \n\n"
|
||||||
)
|
)
|
||||||
used_files.add(f"{source.file}-{source.page}")
|
used_files.add(f"{source.file}-{source.page}")
|
||||||
|
sources_text += "<hr>\n\n"
|
||||||
full_response += sources_text
|
full_response += sources_text
|
||||||
yield full_response
|
yield full_response
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue