Update space
Browse files
README.md
CHANGED
@@ -10,4 +10,8 @@ pinned: false
|
|
10 |
license: cc
|
11 |
---
|
12 |
|
13 |
-
An example chatbot using [Gradio](https://gradio.app),
|
|
|
|
|
|
|
|
|
|
10 |
license: cc
|
11 |
---
|
12 |
|
13 |
+
An example RAG chatbot using [Gradio](https://gradio.app),[Groq](https://groq.com) and [llamaIndex](https://https://www.llamaindex.ai/)
|
14 |
+
|
15 |
+
Usage: Click the Select File To Load button (or drag and drop files into it), then click the Load Documents button
|
16 |
+
When the load has completed, ask questions about your files. Can cope with Microsoft Word and Excel formats as well
|
17 |
+
as PDF and Text files
|
app.py
CHANGED
@@ -24,7 +24,7 @@ Settings.llm = llm # Ensure Groq is the LLM being used
|
|
24 |
# Initialize our chosen embedding model
|
25 |
embed_model = HuggingFaceEmbedding(model_name="sentence-transformers/all-MiniLM-L6-v2")
|
26 |
|
27 |
-
# These are our RAG
|
28 |
# initiated events e.g clicking the Load Documents button
|
29 |
# on the GUI
|
30 |
#
|
@@ -80,7 +80,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
80 |
gr.Markdown("# RAG Multi-file Chat Application")
|
81 |
|
82 |
with gr.Row():
|
83 |
-
file_input = gr.File(label="Select
|
84 |
load_btn = gr.Button("Load Documents")
|
85 |
|
86 |
load_output = gr.Textbox(label="Load Status")
|
|
|
24 |
# Initialize our chosen embedding model
|
25 |
embed_model = HuggingFaceEmbedding(model_name="sentence-transformers/all-MiniLM-L6-v2")
|
26 |
|
27 |
+
# These are our RAG functions, called in response to user
|
28 |
# initiated events e.g clicking the Load Documents button
|
29 |
# on the GUI
|
30 |
#
|
|
|
80 |
gr.Markdown("# RAG Multi-file Chat Application")
|
81 |
|
82 |
with gr.Row():
|
83 |
+
file_input = gr.File(label="Select files to load", file_count="multiple")
|
84 |
load_btn = gr.Button("Load Documents")
|
85 |
|
86 |
load_output = gr.Textbox(label="Load Status")
|