Update app.py
Browse files
app.py
CHANGED
@@ -80,10 +80,10 @@ description = """<strong>Overview:</strong> The app demonstrates how to use a La
|
|
80 |
<strong>Instructions:</strong> Enter an OpenAI API key and perform LLM use cases (semantic search, summarization, translation, etc.) on
|
81 |
<strong>YouTube videos about GPT-4</strong>, created after its training cutoff.
|
82 |
<ul style="list-style-type:square;">
|
83 |
-
<li>Set "Retrieval Augmented Generation" to "<strong>False</strong>" and submit prompt "What is GPT-4"
|
84 |
-
<li>Set "Retrieval Augmented Generation" to "<strong>True</strong>" and submit prompt "What is GPT-4"
|
85 |
<li>Experiment with prompts, e.g. "What is GPT-4 in one sentence in German", "List pros and cons of GPT-4", or "Write a Python program to call the GPT-4 API".</li>
|
86 |
-
<li>Experiment some more, e.g. "Tell a joke about GPT-4", "Write a poem about GPT-4", or "
|
87 |
</ul>\n\n
|
88 |
<strong>Technology:</strong> <a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API via AI-first
|
89 |
<a href='https://www.langchain.com/'>LangChain</a> toolkit with <a href='https://openai.com/research/whisper'>Whisper</a> (speech-to-text) and
|
@@ -94,7 +94,7 @@ gr.close_all()
|
|
94 |
demo = gr.Interface(fn=invoke,
|
95 |
inputs = [gr.Textbox(label = "OpenAI API Key", value = "sk-", lines = 1),
|
96 |
gr.Radio([True, False], label="Retrieval Augmented Generation", value = False),
|
97 |
-
gr.Textbox(label = "Prompt", value = "What is GPT-4", lines = 1)],
|
98 |
outputs = [gr.Textbox(label = "Completion", lines = 1)],
|
99 |
title = "Generative AI - LLM & RAG",
|
100 |
description = description)
|
|
|
80 |
<strong>Instructions:</strong> Enter an OpenAI API key and perform LLM use cases (semantic search, summarization, translation, etc.) on
|
81 |
<strong>YouTube videos about GPT-4</strong>, created after its training cutoff.
|
82 |
<ul style="list-style-type:square;">
|
83 |
+
<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>
|
84 |
+
<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>
|
85 |
<li>Experiment with prompts, e.g. "What is GPT-4 in one sentence in German", "List pros and cons of GPT-4", or "Write a Python program to call the GPT-4 API".</li>
|
86 |
+
<li>Experiment some more, e.g. "Tell a joke about GPT-4", "Write a poem about GPT-4", or "Top 10 tips for GPT-4 prompts".</li>
|
87 |
</ul>\n\n
|
88 |
<strong>Technology:</strong> <a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API via AI-first
|
89 |
<a href='https://www.langchain.com/'>LangChain</a> toolkit with <a href='https://openai.com/research/whisper'>Whisper</a> (speech-to-text) and
|
|
|
94 |
demo = gr.Interface(fn=invoke,
|
95 |
inputs = [gr.Textbox(label = "OpenAI API Key", value = "sk-", lines = 1),
|
96 |
gr.Radio([True, False], label="Retrieval Augmented Generation", value = False),
|
97 |
+
gr.Textbox(label = "Prompt", value = "What is GPT-4?", lines = 1)],
|
98 |
outputs = [gr.Textbox(label = "Completion", lines = 1)],
|
99 |
title = "Generative AI - LLM & RAG",
|
100 |
description = description)
|