Kyo-Kai commited on
Commit
84819bd
Β·
1 Parent(s): 026e332

Added hackathon deliverables

Browse files
Files changed (2) hide show
  1. LICENSE +201 -0
  2. README.md +188 -32
LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
README.md CHANGED
@@ -8,67 +8,223 @@ sdk_version: 5.32.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
 
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
14
 
15
- ## LearnFlow AI: An AI-Powered Learning Platform with MCP Server Integration
16
 
17
- LearnFlow AI is an interactive learning platform that leverages AI to generate personalized learning units, explanations, and quizzes from your content. This project also features an integrated Model Context Protocol (MCP) server, enabling its functionalities to be exposed as tools for other AI agents and systems.
 
 
18
 
19
- ### Features:
20
- - **Content Planning:** Upload documents (PDF, DOC, TXT, PPTX, MD) or paste text to generate structured learning units.
21
- - **Interactive Learning:** Get AI-powered explanations tailored to your preferred learning style (concise or detailed).
22
- - **Knowledge Assessment:** Test your understanding with AI-generated quizzes of various types (Multiple Choice, Open-Ended, True/False, Fill in the Blank) and difficulties.
23
- - **Progress Tracking:** Monitor your learning journey with detailed analytics and overall progress.
24
- - **Session Management:** Save and load your learning sessions.
25
- - **Export Options:** Export your learning content as Markdown, HTML, or PDF.
26
- - **MCP Server Integration:** Exposes core LearnFlow AI functionalities as MCP tools, allowing external agents to interact with the platform programmatically.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
- ### Running Locally:
 
 
 
 
 
 
29
 
30
- 1. **Clone the repository:**
 
 
 
 
 
 
 
 
 
31
  ```bash
32
- git clone https://github.com/your-repo/LearnFlow-AI.git
33
  cd LearnFlow-AI
34
  ```
35
-
36
- 2. **Set up the Python environment:**
37
  ```bash
38
  python -m venv .venv
39
- # On Windows:
 
40
  .venv\Scripts\activate
41
- # On macOS/Linux:
 
42
  source .venv/bin/activate
 
43
  pip install -r requirements.txt
44
  ```
45
-
46
- 3. **Set up the Node.js MCP Server:**
47
- The MCP server is located in the `mcp_server/learnflow-mcp-server` directory.
48
  ```bash
49
  cd mcp_server/learnflow-mcp-server
50
  npm install
51
  npm run build
52
  ```
53
- Ensure that the `LEARNFLOW_AI_ROOT` environment variable is correctly set to the project root directory when running the MCP server. The `app.py` script handles launching the MCP server automatically with the correct environment variables when the Gradio app starts.
 
 
 
54
 
55
- 4. **Run the Gradio Application:**
 
 
 
 
 
56
  ```bash
57
  python app.py
58
  ```
59
- The Gradio application will launch, and the MCP server will automatically start in the background.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
- ### Deployment on Hugging Face Spaces:
 
 
 
 
 
 
62
 
63
- To deploy LearnFlow AI on Hugging Face Spaces, you need to ensure both the Python Gradio app and the Node.js MCP server are correctly set up.
 
64
 
65
- 1. **`app.py`:** The main Gradio application file. It is configured to automatically launch the Node.js MCP server as a background process.
66
- 2. **`requirements.txt`:** Lists all Python dependencies.
67
- 3. **`packages.txt`:** (Create this file if it doesn't exist) This file is crucial for Hugging Face Spaces to install system-level dependencies, including Node.js. Add `nodejs` to this file:
68
  ```
69
  nodejs
 
70
  ```
71
- 4. **MCP Server Directory:** Ensure the `mcp_server/learnflow-mcp-server` directory (or its equivalent path within your project structure) is included in your Hugging Face Space. The `app.py` script expects the compiled server to be at `learnflow-mcp-server/build/index.js` relative to the project root.
72
- 5. **Environment Variables:** The `app.py` script sets `LEARNFLOW_AI_ROOT` automatically for the MCP server subprocess. No manual configuration is typically needed for this specific variable on Spaces if the directory structure is maintained.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
74
- By following these steps, your LearnFlow AI application, including its MCP server, should be ready for deployment and interaction on Hugging Face Spaces.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
+ tags:
12
+ - agent-demo-track
13
  ---
14
 
15
+ # πŸš€ LearnFlow AI: Revolutionizing Learning with AI Agents & MCP
16
 
17
+ LearnFlow AI transforms any document into a comprehensive, interactive learning experience through an innovative multi-agent system. Built with cutting-edge AI technologies and designed for the future of personalized education, it seamlessly integrates advanced RAG capabilities, MCP server functionality, and intelligent content generation.
18
 
19
+ ## 🎯 Video Demo & Overview
20
+ 🎬 Watch our comprehensive demo: [LearnFlow AI in Action](https://youtu.be/_AsLnPB8pN0)
21
+ Experience how LearnFlow AI revolutionizes document-based learning through intelligent agent orchestration and seamless user experience.
22
 
23
+ ---
24
+ ## ✨ Core Innovation & Features
25
+
26
+ LearnFlow AI's architecture and features are meticulously designed to excel according to the Hackathon guidelines, demonstrating innovation, performance, and practical utility, aligning with key award criteria:
27
+
28
+ ### πŸ€– Multi-Agent Intelligence System
29
+ Our sophisticated multi-agent system orchestrates the entire learning process, showcasing a robust and extensible AI framework.
30
+ * **Planner Agent:** Employs an innovative "LLM-first" document understanding strategy, prioritizing native large language model comprehension for superior content summarization and unit generation. This approach, powered by leading LLMs like **Mistral AI** and others via our unified interface, ensures highly relevant and structured learning paths.
31
+ * **Explainer Agent:** Generates contextual explanations with interactive visualizations and code execution. This agent's deep integration with **LlamaIndex Tool Integration** allows it to dynamically generate interactive code blocks and relevant visualizations, enhancing engagement and practical understanding.
32
+ * **Examiner Agent:** Creates comprehensive assessments with instant evaluation capabilities. The optimized non-LLM evaluation for immediate feedback demonstrates high efficiency and responsiveness, aligning with **performance focus**.
33
+ * **Unified Orchestration:** Central MCP tool coordination ensures seamless agent interaction, a core component of our novel approach to multi-agent coordination through the MCP protocol.
34
+
35
+ ### πŸ”— Model Context Protocol (MCP) Server
36
+ LearnFlow AI functions as a dedicated MCP server, exposing its core functionalities as accessible tools for external AI agents and systems. This integration is a prime example of **Innovative MCP Usage**.
37
+ * **First-Class MCP Integration:** Our complete Node.js/TypeScript MCP server implementation exposes all learning capabilities, enabling other AI agents to programmatically access LearnFlow's intelligence.
38
+ * **Automatic Background Launch:** Seamless Node.js server integration with the Python application, featuring a bidirectional Python-Node.js communication bridge with automatic lifecycle management, contributes to a production-ready architecture.
39
+ * **Cross-Platform Compatibility:** Designed to work flawlessly on local development and cloud deployment environments, including Hugging Face Spaces.
40
+
41
+ ### πŸ” Advanced RAG & Document Processing
42
+ Our robust Retrieval-Augmented Generation (RAG) foundation is a key innovation, for powering LearnFlow AI.
43
+ * **Smart Processing Strategy:** Features an LLM-native understanding with sophisticated semantic chunking fallback, ensuring comprehensive content ingestion.
44
+ * **Vector-Enhanced Context:** Utilizes FAISS-powered semantic search with sentence transformers for efficient and accurate document retrieval.
45
+ * **Cross-Reference Intelligence:** Contextual unit generation prevents overlap and builds intelligent connections between learning topics, enhancing the overall learning flow.
46
+ * **Multi-Format Support:** Supports PDF, DOCX, PPTX, and TXT documents with seamless **LlamaIndex** integration for diverse content processing.
47
+
48
+ ### 🎨 Rich Content Generation
49
+ LearnFlow AI delivers a superior learning experience through its ability to generate diverse and high-quality content.
50
+ * **Interactive Visualizations:** AI-generated Plotly charts offer both interactive and static export options, providing dynamic data representation.
51
+ * **Executable Code Blocks:** Live code generation with syntax highlighting and execution capabilities allows for hands-on learning.
52
+ * **Perfect LaTeX Rendering:** Achieves professional mathematical notation in both web and PDF exports, crucial for technical and academic content.
53
+ * **Professional PDF Export:** Our headless browser rendering ensures publication-quality PDF documents, a significant technical achievement.
54
 
55
+ ### ⚑ Performance & User Experience
56
+ LearnFlow AI prioritizes a responsive and intuitive user experience, demonstrating high performance and practical utility, keeping a **User First** design in mind.
57
+ * **Instantaneous Quiz Evaluation:** Optimized non-LLM evaluation for immediate feedback on multiple-choice, true/false, and fill-in-the-blank questions, showcasing efficient AI.
58
+ * **Multi-Provider LLM Support:** Our unified interface supports **OpenAI**, **Mistral AI**, **Gemini**, and local models, offering flexibility and advanced utilization of cutting-edge language models. This multi-provider architecture, highlights flexible and advanced utilization of cutting-edge language models for diverse content generation tasks.
59
+ * **Session Persistence:** Users can save and load learning sessions with comprehensive progress tracking, ensuring continuity and a seamless learning journey.
60
+ * **Responsive UI:** A modern Gradio interface with real-time updates and status indicators provides an intuitive and engaging user experience.
61
+ * **Scalability Foundation:** The multi-agent architecture is designed for horizontal scaling with independent agent processes, async processing for non-blocking content generation, and efficient resource optimization, reflecting a focus on **efficient and scalable AI solutions**.
62
 
63
+ ---
64
+ ## πŸš€ Quick Start
65
+
66
+ ### Prerequisites
67
+ * Python 3.8+
68
+ * Node.js 16+ (for MCP server)
69
+ * 4GB+ RAM recommended
70
+
71
+ ### Installation
72
+ 1. **Clone the repository**
73
  ```bash
74
+ git clone https://huggingface.co/spaces/Kyo-Kai/LearnFlow-AI
75
  cd LearnFlow-AI
76
  ```
77
+ 2. **Set up Python environment**
 
78
  ```bash
79
  python -m venv .venv
80
+
81
+ # Windows
82
  .venv\Scripts\activate
83
+
84
+ # macOS/Linux
85
  source .venv/bin/activate
86
+
87
  pip install -r requirements.txt
88
  ```
89
+ 3. **Configure MCP Server**
 
 
90
  ```bash
91
  cd mcp_server/learnflow-mcp-server
92
  npm install
93
  npm run build
94
  ```
95
+ 4. **Environment Configuration**
96
+ ```bash
97
+ # Copy example environment file
98
+ cp .env.example .env
99
 
100
+ # Add your API keys
101
+ OPENAI_API_KEY=your_openai_key
102
+ MISTRAL_API_KEY=your_mistral_key
103
+ GEMINI_API_KEY=your_gemini_key
104
+ ```
105
+ 5. **Launch Application**
106
  ```bash
107
  python app.py
108
  ```
109
+ The application will automatically launch the MCP server in the background and open the Gradio interface.
110
+
111
+ ---
112
+ ## πŸ“‹ Usage Guide
113
+
114
+ ### Basic Workflow
115
+ 1. πŸ“„ **Plan:** Upload documents and generate structured learning units.
116
+ 2. πŸ“š **Learn:** Access detailed explanations with interactive content.
117
+ 3. πŸ“ **Quiz:** Take comprehensive assessments with instant feedback.
118
+ 4. πŸ“Š **Progress:** Track learning progress and export results.
119
+
120
+ ### Advanced Features
121
+ * **Multi-Format Export:** JSON, Markdown, HTML, and professional PDF.
122
+ * **Session Management:** Save and resume learning sessions.
123
+ * **Custom AI Models:** Configure different LLM providers per task.
124
+ * **Interactive Content:** Execute code blocks and view dynamic visualizations.
125
+
126
+ ---
127
+ ## πŸ—οΈ Architecture Overview
128
+
129
+ ```
130
+ LearnFlow AI/
131
+ β”œβ”€β”€ agents/ # Multi-agent system core
132
+ β”‚ β”œβ”€β”€ planner/ # Document processing & unit generation
133
+ β”‚ β”œβ”€β”€ explainer/ # Content explanation & visualization
134
+ β”‚ β”œβ”€β”€ examiner/ # Quiz generation & evaluation
135
+ β”‚ └── learnflow_mcp_tool/ # Central orchestration
136
+ β”œβ”€β”€ mcp_server/ # Node.js MCP server wrapped on the orchestrator
137
+ β”œβ”€β”€ services/ # LLM factory & vector store
138
+ β”œβ”€β”€ components/ # UI components & state management
139
+ └── utils/ # Modular helper functions
140
+ ```
141
 
142
+ ### Key Technologies
143
+ * **Frontend:** Gradio 5.32.0 with custom CSS
144
+ * **AI/ML:** LlamaIndex, sentence-transformers, FAISS
145
+ * **LLM Integration:** LiteLLM with multi-provider support
146
+ * **MCP Server:** Node.js/TypeScript with MCP SDK
147
+ * **Export:** Plotly, pyppeteer for PDF generation
148
+ * **State Management:** Pydantic models for type safety
149
 
150
+ ---
151
+ ## πŸš€ Deployment
152
 
153
+ ### Hugging Face Spaces
154
+ 1. **Create `packages.txt`**
 
155
  ```
156
  nodejs
157
+ chromium
158
  ```
159
+ 2. **Configure Space Settings**
160
+ * SDK: Gradio
161
+ * Python Version: 3.8+
162
+ * Hardware: CPU Basic (recommended)
163
+ 3. **Environment Variables**
164
+ Set your API keys in the Space settings.
165
+
166
+ ### Docker Deployment
167
+ ```dockerfile
168
+ FROM python:3.9-slim
169
+
170
+ # Install Node.js and Chromium
171
+ RUN apt-get update && apt-get install -y nodejs npm chromium
172
+
173
+ # Copy and install dependencies
174
+ COPY requirements.txt .
175
+ RUN pip install -r requirements.txt
176
+
177
+ COPY . .
178
+
179
+ # Build MCP server
180
+ RUN cd mcp_server/learnflow-mcp-server && npm install && npm run build
181
+
182
+ EXPOSE 7860
183
+
184
+ CMD ["python", "app.py"]
185
+ ```
186
+
187
+ ---
188
+ ## 🀝 Contributing
189
+
190
+ We welcome contributions!
191
+ ### Development Setup
192
+ 1. Fork the repository.
193
+ 2. Create a feature branch
194
+ 3. Make your changes and ensure all features are tested.
195
+ 4. Submit a pull request.
196
+
197
+ ### Reporting Issues
198
+ Please report bugs or request features if encountered.
199
 
200
+ ---
201
+ ## πŸ“„ License
202
+
203
+ This project is licensed under the Apache License 2.0 - see the license file for details.
204
+
205
+ http://www.apache.org/licenses/LICENSE-2.0
206
+
207
+
208
+
209
+ ---
210
+ ## πŸ™ Acknowledgments
211
+
212
+ * **LlamaIndex Team** for the powerful RAG framework.
213
+ * **Mistral AI** for advanced language model capabilities.
214
+ * **Gradio Team** for the excellent UI framework.
215
+ * **MCP Community** for the innovative protocol specification.
216
+ * **HuggingFace** for making this Hackathon possible, free hosting and API credits.
217
+ * **Generous API Credits from:**
218
+ * Anthropic
219
+ * OpenAI
220
+ * Nebius
221
+ * Hyperbolic Labs
222
+ * Sambanova
223
+
224
+ * Open Source Contributors who make projects like this possible.
225
+
226
+ ---
227
+ <div align="center">
228
+ Built with ❀️ for the future of AI-powered education
229
+ 🌟 Star this repo β€’ πŸ› Report Bug β€’ πŸ’‘ Request Feature
230
+ </div>