ChienChung commited on
Commit
514e9d9
Β·
verified Β·
1 Parent(s): 705ae95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -11
app.py CHANGED
@@ -688,7 +688,7 @@ Feel free to ask any question related to Biden’s 2023 State of the Union Addre
688
  demo_description3 = """
689
  **Context**:
690
  Upload a PDF, TXT, or DOCX file and ask a question about its content.
691
- This demo uses GPT-4 to answer questions based on the content of your uploaded document.
692
 
693
  Feel free to ask any question related to your document.
694
  """
@@ -699,14 +699,32 @@ Upload a PDF, TXT, or DOCX file to get a concise, structured summary of its cont
699
  """
700
  demo_description5 = """
701
  **Context**:
702
- This assistant performs multi-agent tasks using tools such as:
703
- - Document summarisation
704
- - FAQ-style document Q&A
705
- - Financial or CSV-style logic queries
706
- - Multi-step reasoning via agent orchestration
707
-
708
- The system will automatically select the appropriate function based on the uploaded file (CSV, PDF, TXT, DOCX) and the query content.
709
- For example, if the query contains "summarize"/"ζ‘˜θ¦", it will summarize the document; if it's CSV data, it will perform data analysis.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
710
  """
711
 
712
  demo = gr.TabbedInterface(
@@ -757,8 +775,8 @@ demo = gr.TabbedInterface(
757
  ],
758
  tab_names=[
759
  "Biden Q&A (LLaMA)",
760
- "Biden Q&A (GPT-4)",
761
- "Your Docs Q&A (Upload + GPT-4)",
762
  "Document Summarization",
763
  "Multi-Agent AI Assistant"
764
  ],
 
688
  demo_description3 = """
689
  **Context**:
690
  Upload a PDF, TXT, or DOCX file and ask a question about its content.
691
+ This demo uses GPT-4o-Mini to answer questions based on the content of your uploaded document.
692
 
693
  Feel free to ask any question related to your document.
694
  """
 
699
  """
700
  demo_description5 = """
701
  **Context**:
702
+ This demo presents a GPT-style Multi-Agent AI Assistant, built with **LangChain, CrewAI**, and **RAG (Retrieval-Augmented Generation)**.
703
+
704
+ The system automatically understands your intent and routes the query to the best expert agent, enabling dynamic **multi-agent orchestration**.
705
+
706
+ Supported features:
707
+
708
+ - πŸ“„ **Document Summarisation** (PDF, DOCX, TXT)
709
+ - ❓ **FAQ-style Q&A based on uploaded documents**
710
+ - 🌐 **Live Web Search** (Online Retrieval-Augmented Generation)
711
+ - πŸ“… **Real-time Date & Time**
712
+ - βž— **Math and Logic Calculations**
713
+ - πŸ’¬ **General Chatting / Reasoning**
714
+
715
+ Just type a question or upload a file. The assistant figures out the rest.
716
+
717
+ > *Note: CSV file analysis is coming soon.*
718
+
719
+ ---
720
+
721
+ **Sample Questions**:
722
+ 1. Can you summarise this document in 3 bullet points?
723
+ 2. What are the key ideas mentioned in this file?
724
+ 3. What is LangChain used for? *(β†’ Web Retrieval)*
725
+ 4. What's the current time in London? *(β†’ Time Agent)*
726
+ 5. What is 25 * (12 + 3)? *(β†’ Math Agent)*
727
+ 6. Tell me a fun fact about AI. *(β†’ General Chat Agent)*
728
  """
729
 
730
  demo = gr.TabbedInterface(
 
775
  ],
776
  tab_names=[
777
  "Biden Q&A (LLaMA)",
778
+ "Biden Q&A (GPT-4o-Mini)",
779
+ "Your Docs Q&A (Upload + GPT-4o-Mini)",
780
  "Document Summarization",
781
  "Multi-Agent AI Assistant"
782
  ],