bstraehle commited on
Commit
f01c51b
1 Parent(s): 86d2f65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -140,7 +140,7 @@ description = """<strong>Overview:</strong> Reasoning application that demonstra
140
  <a href='""" + YOUTUBE_URL_1 + """'>YouTube</a>, <a href='""" + PDF_URL + """'>PDF</a>, and <a href='""" + WEB_URL + """'>Web</a>
141
  <strong>data on GPT-4</strong> (published after LLM knowledge cutoff).
142
  <ul style="list-style-type:square;">
143
- <li>Set "Retrieval Augmented Generation" to "<strong>None</strong>" and submit prompt "What is GPT-4?" The LLM <strong>without</strong> RAG does not know the answer.</li>
144
  <li>Set "Retrieval Augmented Generation" to "<strong>Chroma</strong>" or "<strong>MongoDB</strong>" and submit prompt "What is GPT-4?" The LLM <strong>with</strong> RAG knows the answer.</li>
145
  <li>Experiment with prompts, e.g. "What are GPT-4's media capabilities in 3 emojis and 1 sentence?", "List GPT-4's exam scores and benchmark results.", or "Compare GPT-4 to GPT-3.5 in markdown table format."</li>
146
  <li>Experiment some more, for example "What is the GPT-4 API's cost and rate limit? Answer in English, Arabic, Chinese, Hindi, and Russian in JSON format." or "Write a Python program that calls the GPT-4 API."</li>
@@ -153,7 +153,7 @@ description = """<strong>Overview:</strong> Reasoning application that demonstra
153
  gr.close_all()
154
  demo = gr.Interface(fn=invoke,
155
  inputs = [gr.Textbox(label = "OpenAI API Key", value = "sk-", lines = 1),
156
- gr.Radio(["None", "Chroma", "MongoDB"], label="Retrieval Augmented Generation", value = "None"),
157
  gr.Textbox(label = "Prompt", value = "What is GPT-4?", lines = 1)],
158
  outputs = [gr.Textbox(label = "Completion", lines = 1)],
159
  title = "Generative AI - LLM & RAG",
 
140
  <a href='""" + YOUTUBE_URL_1 + """'>YouTube</a>, <a href='""" + PDF_URL + """'>PDF</a>, and <a href='""" + WEB_URL + """'>Web</a>
141
  <strong>data on GPT-4</strong> (published after LLM knowledge cutoff).
142
  <ul style="list-style-type:square;">
143
+ <li>Set "Retrieval Augmented Generation" to "<strong>Off</strong>" and submit prompt "What is GPT-4?" The LLM <strong>without</strong> RAG does not know the answer.</li>
144
  <li>Set "Retrieval Augmented Generation" to "<strong>Chroma</strong>" or "<strong>MongoDB</strong>" and submit prompt "What is GPT-4?" The LLM <strong>with</strong> RAG knows the answer.</li>
145
  <li>Experiment with prompts, e.g. "What are GPT-4's media capabilities in 3 emojis and 1 sentence?", "List GPT-4's exam scores and benchmark results.", or "Compare GPT-4 to GPT-3.5 in markdown table format."</li>
146
  <li>Experiment some more, for example "What is the GPT-4 API's cost and rate limit? Answer in English, Arabic, Chinese, Hindi, and Russian in JSON format." or "Write a Python program that calls the GPT-4 API."</li>
 
153
  gr.close_all()
154
  demo = gr.Interface(fn=invoke,
155
  inputs = [gr.Textbox(label = "OpenAI API Key", value = "sk-", lines = 1),
156
+ gr.Radio(["Off", "Chroma", "MongoDB"], label="Retrieval Augmented Generation", value = "Off"),
157
  gr.Textbox(label = "Prompt", value = "What is GPT-4?", lines = 1)],
158
  outputs = [gr.Textbox(label = "Completion", lines = 1)],
159
  title = "Generative AI - LLM & RAG",