taupirho commited on
Commit
fae1c86
·
1 Parent(s): f63c633

Update space

Browse files
Files changed (2) hide show
  1. README.md +5 -1
  2. app.py +2 -2
README.md CHANGED
@@ -10,4 +10,8 @@ pinned: false
10
  license: cc
11
  ---
12
 
13
- An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
 
 
 
 
 
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 fucntions, called in response to user
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 PDF files to load", file_count="multiple")
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")