Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ QA_CHAIN_PROMPT = PromptTemplate(input_variables = ["context", "question"], temp
|
|
25 |
CHROMA_DIR = "docs/chroma"
|
26 |
YOUTUBE_DIR = "docs/youtube"
|
27 |
|
28 |
-
YOUTUBE_URL = "
|
29 |
|
30 |
MODEL_NAME = "gpt-4"
|
31 |
|
@@ -52,7 +52,7 @@ description = """<strong>Overview:</strong> The app demonstrates how to use a La
|
|
52 |
(in this case YouTube videos, but it could be PDFs, URLs, or other structured/unstructured private/public
|
53 |
<a href='https://raw.githubusercontent.com/bstraehle/ai-ml-dl/c38b224c196fc984aab6b6cc6bdc666f8f4fbcff/langchain/document-loaders.png'>data sources</a>).\n\n
|
54 |
<strong>Instructions:</strong> Enter an OpenAI API key and perform LLM use cases on a YouTube video (semantic search, sentiment analysis, summarization,
|
55 |
-
translation, etc.) The example is a <a href='
|
56 |
<ul style="list-style-type:square;">
|
57 |
<li>Set "Process Video" to "False" and submit prompt "what is gpt-4". The LLM <strong>without</strong> RAG does not know the answer.</li>
|
58 |
<li>Set "Process Video" to "True" and submit prompt "what is gpt-4". The LLM <strong>with</strong> RAG knows the answer.</li>
|
|
|
25 |
CHROMA_DIR = "docs/chroma"
|
26 |
YOUTUBE_DIR = "docs/youtube"
|
27 |
|
28 |
+
YOUTUBE_URL = "https://www.youtube.com/watch?v=--khbXchTeE"
|
29 |
|
30 |
MODEL_NAME = "gpt-4"
|
31 |
|
|
|
52 |
(in this case YouTube videos, but it could be PDFs, URLs, or other structured/unstructured private/public
|
53 |
<a href='https://raw.githubusercontent.com/bstraehle/ai-ml-dl/c38b224c196fc984aab6b6cc6bdc666f8f4fbcff/langchain/document-loaders.png'>data sources</a>).\n\n
|
54 |
<strong>Instructions:</strong> Enter an OpenAI API key and perform LLM use cases on a YouTube video (semantic search, sentiment analysis, summarization,
|
55 |
+
translation, etc.) The example is a <a href='https://www.youtube.com/watch?v=--khbXchTeE'>short video about GPT-4</a>.
|
56 |
<ul style="list-style-type:square;">
|
57 |
<li>Set "Process Video" to "False" and submit prompt "what is gpt-4". The LLM <strong>without</strong> RAG does not know the answer.</li>
|
58 |
<li>Set "Process Video" to "True" and submit prompt "what is gpt-4". The LLM <strong>with</strong> RAG knows the answer.</li>
|