Skip to content

Commit

Permalink
feat ✨: New response template implementation
Browse files Browse the repository at this point in the history
- The code implements a new response template for user queries based on the provided context.
  • Loading branch information
tmeftah committed Aug 25, 2024
1 parent 9d7d417 commit 7365a9b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions backend/service/llm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@

from backend.exceptions import ModelsNotRetrievedException

TEMPLATE = """<|begin_of_text|><|start_header_id|>system<|end_header_id|>
You are an AI assistant, you only answer questions on the folwing
context and nothing else. If you do not know the answer please strictly say
'see Documentation'<|eot_id|><|start_header_id|>user<|end_header_id|>
TEMPLATE = """You are an AI assistant and based on the context provided below, please provide a brief answer starting with 'Based on the given context'. Do not use external knowledge or make assumptions beyond the context
context and nothing else. If you do not know the answer please strictly say "I couldn't find the answer to that question. Please contact our support team for more assistance."
Question: {input}
Context: {context}
<|eot_id|><|start_header_id|>assistant<|end_header_id|>"""
"""


def get_list_available_models():
Expand Down

0 comments on commit 7365a9b

Please sign in to comment.