Skip to content

Commit 904ab0e

Browse files
committed
Week 4 updates by Aman Naik
1 parent 423345f commit 904ab0e

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed
57.3 KB
Loading
90.7 KB
Loading
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
title: "DMP ’25 Week 4 Update by Aman Naik"
3+
excerpt: "This week focused on building a basic UI for the chatbot within Sugar and implementing a book recommendation system using the Google Books API."
4+
category: "DEVELOPER NEWS"
5+
date: "2025-06-29"
6+
slug: "2025-06-22-dmp-25-AmanNaik-week04"
7+
author: "@/constants/MarkdownFiles/authors/amannaik247.md"
8+
tags: "dmp25,writeactivity,write,sugarlabs,week04,amannaik247"
9+
image: "assets/Images/c4gt_DMP.png"
10+
---
11+
12+
<!-- markdownlint-disable -->
13+
14+
# Week 4 Progress Report by Aman Naik
15+
16+
**Project:** [Add an AI-assistant to the Write Activity](https://github.com/sugarlabs/write-activity/issues/52)
17+
**Mentors:** [Walter Bender](https://github.com/walterbender), [Ibiam Chihurumnaya](https://github.com/chimosky)
18+
**Reporting Period:** 2025-06-22 – 2025-06-28
19+
20+
---
21+
22+
## Goals for This Week
23+
24+
- **Goal 1:** Create some UI to test the demo chatbot inside Sugar
25+
- **Goal 2:** Develop a book recommendation feature for the demo application
26+
27+
---
28+
29+
## This Week’s Achievements
30+
31+
1. **Built a Basic Chatbot UI Inside Sugar**
32+
- Created an initial UI within Sugar using the demo logic from the Streamlit version as reference.
33+
- Implemented a basic sidebar within the activity that allows students to converse with the chatbot while simultaneously viewing the story context.
34+
- The framework generated from the conversation is currently being saved as a JSON file. UI for displaying the framework is still under development and will be added later.
35+
36+
![User interface(sidebar) and AI generated responses](assets/Images/aman-naik-week4-img1.png)
37+
38+
2. **Implemented Book Recommendation Feature**
39+
- Integrated the Google Books API to recommend the top 3 similar books based on the conversation with the AI assistant.
40+
- The goal is to inspire children by connecting their creative stories with real-world books.
41+
- Based on mentor feedback, I will prioritize refining the chatbot and story framework builder before expanding the recommendation feature.
42+
43+
![Book recommendations based on the conversation fro streamlit demo](assets/Images/aman-naik-week4-img2.png)
44+
45+
---
46+
47+
## Challenges & How I Overcame Them
48+
49+
- **Challenge:** Integrating the chatbot into Sugar and dealing with GTK
50+
**Solution:** As I had limited experience with GTK, I faced difficulties while setting up the interface. Additionally, the initial setup used Groq's SDK, which wasn’t compatible with Sugar. I refactored the code to use the `requests` module for calling Groq’s API instead, which made integration possible without extra dependencies.
51+
52+
- **Challenge:** Displaying the final story framework after clicking the "Create Framework" button
53+
**Solution:** I’m currently working on UI design ideas to present the story structure in a child-friendly and intuitive way. I’ll be discussing different visual layouts with my mentors in the upcoming meeting to finalize a clear and engaging format.
54+
55+
---
56+
57+
## Key Learnings
58+
59+
**Integrated AI Chatbot Into Sugar's UI Framework**
60+
- Learned how to work with GTK and adapt web-based chatbot logic into a desktop environment suitable for Sugar.
61+
62+
**Designed Book Recommendation Feature Using Google Books API**
63+
- Built a feature that enriches the student’s experience by recommending related books based on the story they are writing.
64+
65+
**Improved Problem-Solving Skills While Debugging API and GTK Issues**
66+
- Encountered real-world software integration issues and learned how to handle dependency mismatches and platform limitations effectively.
67+
68+
---
69+
70+
## Next Week’s Roadmap
71+
72+
- Finalize the UI for the story framework display
73+
- Focus on polishing the conversational flow of the AI assistant
74+
- Exploring LLM's to be used instead of Groq API for AWS integration
75+
76+
---
77+
78+
## Acknowledgments
79+
80+
Grateful to my mentors, the Sugar Labs community, and fellow contributors for their continuous support and insightful suggestions throughout the week!
81+
82+
---

0 commit comments

Comments
 (0)