Spaces:
Runtime error
Runtime error
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,12 +1,107 @@
|
|
| 1 |
---
|
| 2 |
-
title: Agentic
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Agentic AI Patterns for Scientific Q&A
|
| 3 |
+
emoji: π€
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# π€ Agentic AI Patterns for Scientific Q&A
|
| 14 |
+
|
| 15 |
+
A comprehensive comparison of 6 different AI reasoning approaches for answering scientific questions, powered by OpenAI GPT-4o-mini and OpenAlex scientific database.
|
| 16 |
+
|
| 17 |
+
## π― Features
|
| 18 |
+
|
| 19 |
+
### 6 AI Reasoning Patterns:
|
| 20 |
+
1. **π€ Pure LLM** - Direct response without enhancement
|
| 21 |
+
2. **πͺ Reflection** - Agent reviews and improves its own answer
|
| 22 |
+
3. **π Planning** - Creates and follows a systematic research plan
|
| 23 |
+
4. **π§ Tool Use** - Uses OpenAlex to find relevant scientific papers
|
| 24 |
+
5. **π₯ Multi-Agent** - Multiple specialized agents collaborate
|
| 25 |
+
6. **π§ Chain of Thought** - Step-by-step logical reasoning
|
| 26 |
+
|
| 27 |
+
### βοΈ Comparison Mode
|
| 28 |
+
Run all 6 patterns simultaneously to compare:
|
| 29 |
+
- Processing speed
|
| 30 |
+
- Confidence levels
|
| 31 |
+
- Source utilization
|
| 32 |
+
- Answer quality
|
| 33 |
+
|
| 34 |
+
## π¬ Scientific Integration
|
| 35 |
+
|
| 36 |
+
- **OpenAlex Database**: Access to 240M+ scientific papers
|
| 37 |
+
- **Real-time Literature Search**: Find relevant research for any question
|
| 38 |
+
- **Citation Analysis**: Get papers with citation counts and metadata
|
| 39 |
+
- **Multi-domain Support**: Physics, Biology, Chemistry, Medicine, Computer Science, and more
|
| 40 |
+
|
| 41 |
+
## π¨ Beautiful Interface
|
| 42 |
+
|
| 43 |
+
- **Modern Design**: Glass-morphism effects with gradient backgrounds
|
| 44 |
+
- **Dark/Light Theme**: Automatic theme adaptation
|
| 45 |
+
- **Responsive Layout**: Works on desktop and mobile
|
| 46 |
+
- **Interactive Elements**: Hover effects and smooth transitions
|
| 47 |
+
- **Example Questions**: Pre-loaded scientific questions to try
|
| 48 |
+
|
| 49 |
+
## π How to Use
|
| 50 |
+
|
| 51 |
+
1. **Get OpenAI API Key**: Visit [OpenAI Platform](https://platform.openai.com/api-keys) to get your API key
|
| 52 |
+
2. **Enter your question** in the text area (or use example questions)
|
| 53 |
+
3. **Provide your OpenAI API key** in the API key field
|
| 54 |
+
4. **Choose a pattern** to see how different AI approaches handle your question
|
| 55 |
+
5. **Compare all patterns** to see which works best for your question type
|
| 56 |
+
|
| 57 |
+
## π§ͺ Example Questions
|
| 58 |
+
|
| 59 |
+
- "What are the main mechanisms behind CRISPR-Cas9 gene editing and what are its current limitations?"
|
| 60 |
+
- "How does climate change affect ocean acidification and marine ecosystems?"
|
| 61 |
+
- "What is the relationship between gut microbiome diversity and human immune system function?"
|
| 62 |
+
- "Explain the current understanding of dark matter and dark energy in cosmology."
|
| 63 |
+
- "What are the key differences between mRNA vaccines and traditional vaccines?"
|
| 64 |
+
|
| 65 |
+
## π οΈ Technical Details
|
| 66 |
+
|
| 67 |
+
- **Framework**: Gradio 4.44.0
|
| 68 |
+
- **AI Model**: OpenAI GPT-4o-mini
|
| 69 |
+
- **Database**: OpenAlex API
|
| 70 |
+
- **Language**: Python with async/await
|
| 71 |
+
- **Styling**: Custom CSS with theme support
|
| 72 |
+
|
| 73 |
+
## π Pattern Comparison
|
| 74 |
+
|
| 75 |
+
Each pattern offers unique advantages:
|
| 76 |
+
|
| 77 |
+
- **Pure LLM**: Fastest, baseline performance
|
| 78 |
+
- **Reflection**: Higher accuracy through self-correction
|
| 79 |
+
- **Planning**: Systematic approach for complex questions
|
| 80 |
+
- **Tool Use**: Evidence-based answers with citations
|
| 81 |
+
- **Multi-Agent**: Multiple perspectives and expertise
|
| 82 |
+
- **Chain of Thought**: Transparent reasoning process
|
| 83 |
+
|
| 84 |
+
## π Privacy & Security
|
| 85 |
+
|
| 86 |
+
- **User-provided API keys**: Users must bring their own OpenAI API keys
|
| 87 |
+
- **No API key storage**: Keys are only used during the session
|
| 88 |
+
- **No data logging**: No conversation data is stored
|
| 89 |
+
- **Ephemeral processing**: All data is processed in real-time only
|
| 90 |
+
- **Open source**: Fully transparent code
|
| 91 |
+
|
| 92 |
+
## π Educational Value
|
| 93 |
+
|
| 94 |
+
Perfect for:
|
| 95 |
+
- **Researchers** comparing AI reasoning approaches
|
| 96 |
+
- **Students** learning about agentic AI patterns
|
| 97 |
+
- **Educators** demonstrating different AI capabilities
|
| 98 |
+
- **Developers** understanding advanced prompt engineering
|
| 99 |
+
|
| 100 |
+
## π Based on Research
|
| 101 |
+
|
| 102 |
+
Implements proven agentic AI patterns from recent research in AI reasoning and tool use, adapted specifically for scientific question answering.
|
| 103 |
+
|
| 104 |
+
---
|
| 105 |
+
|
| 106 |
+
*Experiment with different AI reasoning patterns and discover which approach works best for your scientific questions!*
|
| 107 |
+
|