cloudflare / cloudflare-docs

Cloudflare’s documentation
https://developers.cloudflare.com
Creative Commons Attribution 4.0 International
2.69k stars 2.76k forks source link

[D1, R2, Vectorize, Workers AI] Add more "complete / full-stack" demos of all the new Workers tools working together #11520

Open janzheng opened 8 months ago

janzheng commented 8 months ago

Which Cloudflare product(s) does this pertain to?

D1, R2, Vectorize, Workers AI

Subject Matter

App template for vector search and generative AI using all the new tools

Content Location

https://developers.cloudflare.com/vectorize

Additional information

Would love if there was a full example of say, a custom Pokemon / Pokedex app where you could add new items like image/name/type of monster, store it on D1, have them multi-modally indexed on Vectorize, images uploaded on R2, etc. as a full, standalone sample template app for us to poke around with.

I just saw a demo by Datastax and thought it was cool their Cassandra instances can just store vector + data together, and was wondering if D1 ever pushed into that direction, where R2 and Vectorize assets could just "merge" into D1 rows, with a super simple JSON nosql-like API. It'd be super cool if you could just do db.add(JSON data), .upload(), .search(), .get(), etc. and the Cloudflare Workers API will just do the appropriate things. Right now it seems like it's hard to grasp hard to get everything working together, and a few demo apps would definitely get closer, but I think there are some quick DX wins with a unified API for all these items

andrew-bierman commented 1 month ago

Bump, this would be really helpful for building full stack apps entirely in CF ecosystem