mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-08 23:32:40 +02:00
feat: added missed migration
This commit is contained in:
parent
9429c2b06b
commit
a3f50ebc4d
11 changed files with 126 additions and 38 deletions
|
|
@ -1,6 +1,11 @@
|
|||
import datetime
|
||||
|
||||
from ..prompts import _build_language_instruction
|
||||
def get_citation_system_prompt(chat_history: str | None = None, language: str | None = None):
|
||||
|
||||
|
||||
def get_citation_system_prompt(
|
||||
chat_history: str | None = None, language: str | None = None
|
||||
):
|
||||
chat_history_section = (
|
||||
f"""
|
||||
<chat_history>
|
||||
|
|
@ -14,7 +19,7 @@ NO CHAT HISTORY PROVIDED
|
|||
</chat_history>
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
# Add language instruction if specified
|
||||
language_instruction = _build_language_instruction(language)
|
||||
|
||||
|
|
@ -158,7 +163,9 @@ Make sure your response:
|
|||
"""
|
||||
|
||||
|
||||
def get_no_documents_system_prompt(chat_history: str | None = None, language: str | None = None):
|
||||
def get_no_documents_system_prompt(
|
||||
chat_history: str | None = None, language: str | None = None
|
||||
):
|
||||
chat_history_section = (
|
||||
f"""
|
||||
<chat_history>
|
||||
|
|
@ -172,7 +179,7 @@ NO CHAT HISTORY PROVIDED
|
|||
</chat_history>
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
# Add language instruction if specified
|
||||
language_instruction = _build_language_instruction(language)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue