iAkashPaul commited on
Commit
372c7e9
·
verified ·
1 Parent(s): 3ea94cd

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -22,7 +22,7 @@ class Item(BaseModel):
22
  def base():
23
  return """PROXY ONLINE on /llm route $curl -X POST https://iakashpaul-cors-proxy-baseten.hf.space/llm --data '{"prompt":"hello"}'"""
24
 
25
- prefix_prompt="""<s>[INST]Summarize the following transcript[/INST]\n"""
26
  suffix_prompt="""\n"""
27
  import os
28
  baseten_url = os.getenv("BASETEN_URL")
 
22
  def base():
23
  return """PROXY ONLINE on /llm route $curl -X POST https://iakashpaul-cors-proxy-baseten.hf.space/llm --data '{"prompt":"hello"}'"""
24
 
25
+ prefix_prompt="""<s>[INST]You will be given a user query for interacting with record/lines/rows of a db.\nYou need to guess whether it is only among 'create'(eg. generate, write row, create record number 45), 'update'(eg. revise, update, modify), 'read'(eg. see, show me, view, read) or 'delete'(eg. remove record, delete row number 5) logically & whether the user has mentioned numbers or digits of any rows/record/lines between 1 to 100. \nYour response should strictly be as follows & no extra words/explanations or respond with just a single output. \nIn case no action matches, just respond with {"NA":"NA"}, don't assume anything just reply to the user in-case it is not clear what the action it is they want to perform. Do not add comments after the JSON \nFor given example input: Show me record number 3.\noutput:{"action":"read","number":"3"}[/INST]\n"""
26
  suffix_prompt="""\n"""
27
  import os
28
  baseten_url = os.getenv("BASETEN_URL")