DEV Community

Cover image for Cloudflare Based AI Embed System
Shivam Meena
Shivam Meena

Posted on • Edited on

1 1 1 1

Cloudflare Based AI Embed System

This is a submission for the Cloudflare AI Challenge.

What I Built

I have built a chatbot embed for web apps that can be deployed to cloudflare stack. It needs more work currently it's not complete. What I created is similar to sitegpt. Where users visits trains there chatbots and then they can embed it on there websites using an iframe. I wanted to do this for whatsapp but after a bit research they asked for verification and other things.

Demo

Web Link: Botified.chat
Landing
Dashboard

My Code

Github: Botified Chat
This time I choose to use complete cloudflare stack with sveltekit and with there recent introduction of platformProxy, I like it somewhat.

Tech Stack:

  • Metaframework: Sveltekit
  • Database: Cloudflare D1
  • ORM: Drizzle
  • Vector Database: Vectorize
  • Deployment: Cloudflare Workers

Journey

I started very late around a day ago but i did had this idea what i wanna build. So, I took my weapons and sat for 10 hours and completed as much as possible as i mentioned earlier it's not completed. It doesn't matter it gets rejected or anything. I learnt a lot in last 10 hrs about langchain, cloudflares workers issues, D1 migration handling with prisma and Drizzle. It's was fun to sit foe this long to do my own project. Sometimes, we just do the our 9-5 and forget the chances we get and this was my chance. I'll complete my project now.

Multiple Models and/or Triple Task Types

I have used 2 models:

  • Embedding: @cf/baai/bge-large-en-v1.5
  • Chat: @cf/meta/llama-2-7b-chat-int8 They serve there purpose well good enough. I'll be making changes in the project. I don't know it's allowed or not.

Thanks @cloudflaredev and Dev.to for this fun project.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more