Kukedlc commited on
Commit
170cb41
1 Parent(s): 7c31dfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from llama_cpp import Llama
4
  llm = Llama(model_path="model.gguf", n_ctx=8000, n_threads=2, chat_format="chatml")
5
 
6
  def generate(message, history,temperature=0.3,max_tokens=512):
7
- system_prompt = """You are a super Inteligent AI assistant in SQL ANSI coding."""
8
  formatted_prompt = [{"role": "system", "content": system_prompt}]
9
  for user_prompt, bot_response in history:
10
  formatted_prompt.append({"role": "user", "content": user_prompt})
 
4
  llm = Llama(model_path="model.gguf", n_ctx=8000, n_threads=2, chat_format="chatml")
5
 
6
  def generate(message, history,temperature=0.3,max_tokens=512):
7
+ system_prompt = """You are a SQL virtual assistant, you will only create queries thinking step by step. Check that the syntax is perfect and don't miss any character. Pay attention to the names of the tables and fields. Do not make up fields that do not exist. I want you to give the query only. Do not speak and do not explain anything. Just provide the queries with no further words."""
8
  formatted_prompt = [{"role": "system", "content": system_prompt}]
9
  for user_prompt, bot_response in history:
10
  formatted_prompt.append({"role": "user", "content": user_prompt})