bstraehle commited on
Commit
d9089fe
·
1 Parent(s): 643748f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -81,11 +81,11 @@ def invoke(openai_api_key, use_rag, prompt):
81
  result = chain.run({"question": prompt})
82
  return result
83
 
84
- description = """<strong>Overview:</strong> The app demonstrates how to use a Large Language Model (LLM) with Retrieval Augmented Generation (RAG) on external data
85
- (private/public & structured/unstructured).\n\n
86
  <strong>Instructions:</strong> Enter an OpenAI API key and perform LLM use cases (semantic search, summarization, translation, etc.) on
87
- <a href='""" + YOUTUBE_URL_1 + """'>YouTube</a>, <a href='""" + PDF_URL + """'>PDF</a>, and <a href='""" + WEB_URL + """'>Web</a> data about GPT-4,
88
- created after training cutoff.
89
  <ul style="list-style-type:square;">
90
  <li>Set "Retrieval Augmented Generation" to "<strong>False</strong>" and submit prompt "What is GPT-4?" The LLM <strong>without</strong> RAG does not know the answer.</li>
91
  <li>Set "Retrieval Augmented Generation" to "<strong>True</strong>" and submit prompt "What is GPT-4?" The LLM <strong>with</strong> RAG knows the answer.</li>
 
81
  result = chain.run({"question": prompt})
82
  return result
83
 
84
+ description = """<strong>Overview:</strong> The app demonstrates how to use a <strong>Large Language Model (LLM)</strong> with <strong>Retrieval Augmented Generation (RAG)</strong>
85
+ on <strong>external data<strong> (private/public & structured/unstructured).\n\n
86
  <strong>Instructions:</strong> Enter an OpenAI API key and perform LLM use cases (semantic search, summarization, translation, etc.) on
87
+ <a href='""" + YOUTUBE_URL_1 + """'>YouTube</a>, <a href='""" + PDF_URL + """'>PDF</a>, and <a href='""" + WEB_URL + """'>Web</a>
88
+ <strong>data about GPT-4</strong> (created after training cutoff).
89
  <ul style="list-style-type:square;">
90
  <li>Set "Retrieval Augmented Generation" to "<strong>False</strong>" and submit prompt "What is GPT-4?" The LLM <strong>without</strong> RAG does not know the answer.</li>
91
  <li>Set "Retrieval Augmented Generation" to "<strong>True</strong>" and submit prompt "What is GPT-4?" The LLM <strong>with</strong> RAG knows the answer.</li>