Kristofy commited on
Commit
dc1d420
1 Parent(s): e74aedd

more whitespace

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -283,11 +283,11 @@ def text_to_text_generation(verbose, prompt):
283
  prompt = f"You are a helpful kubernetes professional. [INST] Use the following documentation, if it is relevant to answer the question below. [/INST]\nDocumentation: {retrieved_results} </s>\n<s> [INST] Answer the following question: {prompt} [/INST]\nAnswer:\n\n"
284
 
285
  md = (
286
- f"### Step 1: Preparing prompt for additional documentation\n"
287
- f"You are a helpful kubernetes professional. [INST] Use the following documentation, if it is relevant to answer the question below. [/INST]\nDocumentation:\n"
288
- f"### Step 2: Retrieving documentation from a book.\n"
289
- f"{retrieved_results}\n"
290
- f"### Step 3: Creating full prompt given to model\n"
291
  f"You are a helpful kubernetes professional. [INST] Use the following documentation, if it is relevant to answer the question below. [/INST]\nDocumentation: [RETRIEVED_RESULTS_FROM_BOOK] [INST] Answer the following question: {question} [/INST]\nAnswer:"
292
  )
293
  elif retriever == "google_search":
@@ -303,11 +303,11 @@ def text_to_text_generation(verbose, prompt):
303
  )
304
 
305
  md = (
306
- f"### Step 1: Preparing prompt for additional documentation\n"
307
- f"You are a helpful kubernetes professional. [INST] Use the following documentation, if it is relevant to answer the question below. [/INST]\nDocumentation:\n"
308
- f"### Step 2: Retrieving documentation from Google.\n"
309
- f"{retrieved_results}\n"
310
- f"### Step 3: Creating full prompt given to model\n"
311
  f"You are a helpful kubernetes professional. [INST] Use the following documentation, if it is relevant to answer the question below. [/INST]\nDocumentation: [RETRIEVED_RESULTS_FROM_GOOGLE] [INST] Answer the following question: {question} [/INST]\nAnswer:"
312
  )
313
  else:
 
283
  prompt = f"You are a helpful kubernetes professional. [INST] Use the following documentation, if it is relevant to answer the question below. [/INST]\nDocumentation: {retrieved_results} </s>\n<s> [INST] Answer the following question: {prompt} [/INST]\nAnswer:\n\n"
284
 
285
  md = (
286
+ f"### Step 1: Preparing prompt for additional documentation \n\n"
287
+ f"You are a helpful kubernetes professional. [INST] Use the following documentation, if it is relevant to answer the question below. [/INST]\nDocumentation: \n\n"
288
+ f"### Step 2: Retrieving documentation from a book. \n\n"
289
+ f"{str_to_md(retrieved_results)}\n"
290
+ f"### Step 3: Creating full prompt given to model \n\n"
291
  f"You are a helpful kubernetes professional. [INST] Use the following documentation, if it is relevant to answer the question below. [/INST]\nDocumentation: [RETRIEVED_RESULTS_FROM_BOOK] [INST] Answer the following question: {question} [/INST]\nAnswer:"
292
  )
293
  elif retriever == "google_search":
 
303
  )
304
 
305
  md = (
306
+ f"### Step 1: Preparing prompt for additional documentation \n\n"
307
+ f"You are a helpful kubernetes professional. [INST] Use the following documentation, if it is relevant to answer the question below. [/INST]\nDocumentation: \n\n"
308
+ f"### Step 2: Retrieving documentation from Google. \n\n"
309
+ f"{str_to_md(retrieved_results)} \n\n"
310
+ f"### Step 3: Creating full prompt given to model \n\n"
311
  f"You are a helpful kubernetes professional. [INST] Use the following documentation, if it is relevant to answer the question below. [/INST]\nDocumentation: [RETRIEVED_RESULTS_FROM_GOOGLE] [INST] Answer the following question: {question} [/INST]\nAnswer:"
312
  )
313
  else: