Logo

dev-resources.site

for different kinds of informations.

β€œWhy do we need to learn this?”

Published at
4/14/2024
Categories
cloudflarechallenge
devchallenge
ai
Author
rayenbouzaabia
Categories
3 categories in total
cloudflarechallenge
open
devchallenge
open
ai
open
Author
14 person written this
rayenbouzaabia
open
β€œWhy do we need to learn this?”

This is a submission for the Cloudflare AI Challenge.

What I Built

LearnWhy is a groundbreaking web application designed to answer the timeless question, "Why do we need to learn this?". As students grapple with complex scientific topics, With the power of Generative AI, LearnWhy empowers them with real-world stories, generated from text input, that vividly illustrate the relevance and practical significance of each concept. Seamlessly integrating captivating images, LearnWhy transforms abstract ideas into tangible experiences, fostering curiosity, comprehension, and a profound appreciation for the wonders of science.

Demo

You can find a demo of LearnWhy at this link.

My Code

Frontend (Vue.js 3)
The frontend of LearnWhy is meticulously crafted using Vue.js 3, ensuring a seamless user experience and responsive design. Dive into the codebase on GitHub: LearnWhy Frontend Repository.

Backend (Cloudflare Workers)
LearnWhy's backend infrastructure, powered by Cloudflare Workers, orchestrates the magic behind the scenes.

Screenshot

Image description

Journey

In the process of building LearnWhy, I implemented the following workflow:

  1. Get User Text: Users input their text, expressing their struggles with understanding complex scientific topics.

  2. Extract Incomprehensible Topic: LearnWhy utilizes the mistral-7b-instruct-v0.2 llm model to extract the incomprehensible topic from the user's input.

  3. Generate Story: Using the llama-2-7b-chat-fp16 llm model, LearnWhy generates a real-world story highlighting the necessity of understanding the identified concept in our lives.

  4. Generate Prompt: From the generated story, LearnWhy creates a prompt illustrating the general scene, again using the mistral-7b-instruct-v0.2 llm model.

  5. Generate Image: LearnWhy generates an image illustrating the scene described in the prompt, utilizing the stable-diffusion-xl-lightning model.

Throughout LearnWhy's development, I gained invaluable insights into implementing AI-driven solutions. Leveraging Cloudflare Workers and Pages was instrumental, enabling seamless integration of AI functionality into the backend and rapid deployment of the Vue.js frontend. Cloudflare's scalability and performance ensured a smooth user experience. Vue.js served as the foundation for dynamic interfaces, facilitating seamless integration of text input, story generation, and image creation. This synergy culminated in a comprehensive learning experience for users.

Multiple Models and/or Triple Task Types

LearnWhy harnesses the power of multiple models per task, seamlessly integrating text classification, text generation and image generation. qualifying for the additional prize categories.

Type Model Name
Incomprehensible Topic Extraction mistral-7b-instruct-v0.2
Story Generation llama-2-7b-chat-fp16
Prompt Generation mistral-7b-instruct-v0.2
Image Generation bytedance/stable-diffusion-xl-lightning

DEV usernames

rayenbouzaabia

cloudflarechallenge Article's
30 articles in total
Favicon
在 Nextjs δΈ­ζ— ηΌι›†ζˆ Cloudflare Turnstile
Favicon
I built a Github user analysis and ranking website
Favicon
How to Create an AI Image Generator Using Cloudflare Workers AI SDK
Favicon
I Created a Web App with hono Where Everyone Can Knead Clay Together
Favicon
Unlocking the Potential of Cloudflare Workers for Small Projects
Favicon
Cloudflare Launches Free Tool to Combat AI Bot Scraping
Favicon
How to Identify Cloudflare Turnstile | By using CapSolver Extension
Favicon
Validate your Jenkinsfile with the vscode plugin vscode-jenkins-pipeline-linter-connector and the LLMs large model
Favicon
Publish HTTPS Local Server Using Cloudflare
Favicon
Slater - virtual language learning companion
Favicon
Frame fushion
Favicon
Comprehend AI - Elevate Your Reading Comprehension Skills!
Favicon
Conversational Intelligence Miner
Favicon
Literally read YouTube videos
Favicon
NewsCast: daily audio news podcasts for your interests (Cloudflare AI Challenge)
Favicon
β€œWhy do we need to learn this?”
Favicon
STONKS APP πŸ“ˆπŸ“‰- Stocks helper for Beginners
Favicon
Generate my Pet
Favicon
Journal your ideas and experiences with your voice: Voice Journal
Favicon
Cloudflare Challenge
Favicon
PicsTweakr
Favicon
AI Twitter & LinkedIn Bio Generator
Favicon
KodeStyle: Let's style the way we code and show!
Favicon
KodeStyle: Let's style the way we code and show!
Favicon
MATT AI
Favicon
Congrats to the Cloudflare AI Challenge Winners!
Favicon
Steps to build a text generator application in workers ai by cloudflare
Favicon
Building a Short Story Assistant using Cloudflare AI
Favicon
Vanilla worker playground for cloudflare AI
Favicon
Di1 - AI Driven Insights With Cloudflare

Featured ones: