nguyenthanhasia commited on
Commit
c470d1b
Β·
verified Β·
1 Parent(s): e512b8e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +101 -6
README.md CHANGED
@@ -1,12 +1,107 @@
1
  ---
2
- title: Agentic Ai Patterns
3
- emoji: 😻
4
- colorFrom: red
5
- colorTo: red
6
  sdk: gradio
7
- sdk_version: 5.44.1
8
  app_file: app.py
9
  pinned: false
 
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+