Update app.py
Browse files
app.py
CHANGED
@@ -144,7 +144,6 @@ with gr.Blocks(theme=Monochrome()) as demo:
|
|
144 |
with gr.Column():
|
145 |
with gr.Accordion("What This Demo Does", open = True):
|
146 |
gr.Markdown("""
|
147 |
-
This AI Chatbot application uses Retrieval-Augmented Generation (RAG) to provide intelligent responses based on the content of uploaded PDF documents. It allows users to:
|
148 |
1. Upload multiple PDF documents
|
149 |
2. Process and index the content of these documents
|
150 |
3. Ask questions about the content
|
@@ -153,13 +152,10 @@ with gr.Blocks(theme=Monochrome()) as demo:
|
|
153 |
with gr.Column():
|
154 |
with gr.Accordion("How does it work?", open = True):
|
155 |
gr.Markdown("""
|
156 |
-
**Question Answering:**
|
157 |
- When a user asks a question, the system searches for the most relevant chunks of text from the uploaded documents.
|
158 |
- It then uses these relevant chunks as context for a large language model (LLM) to generate an answer.
|
159 |
- The LLM (in this case, GPT-4) formulates a response based on the provided context and the user's question.
|
160 |
-
|
161 |
-
- Pixeltable is used to manage the document data, chunks, and embeddings efficiently.
|
162 |
-
- It provides a declarative interface for complex data operations, making it easier to build and maintain this RAG system.
|
163 |
""")
|
164 |
|
165 |
with gr.Row():
|
|
|
144 |
with gr.Column():
|
145 |
with gr.Accordion("What This Demo Does", open = True):
|
146 |
gr.Markdown("""
|
|
|
147 |
1. Upload multiple PDF documents
|
148 |
2. Process and index the content of these documents
|
149 |
3. Ask questions about the content
|
|
|
152 |
with gr.Column():
|
153 |
with gr.Accordion("How does it work?", open = True):
|
154 |
gr.Markdown("""
|
|
|
155 |
- When a user asks a question, the system searches for the most relevant chunks of text from the uploaded documents.
|
156 |
- It then uses these relevant chunks as context for a large language model (LLM) to generate an answer.
|
157 |
- The LLM (in this case, GPT-4) formulates a response based on the provided context and the user's question.
|
158 |
+
- Pixeltable is used to manage the document data, chunks, and embeddings while also to retrieve context.
|
|
|
|
|
159 |
""")
|
160 |
|
161 |
with gr.Row():
|