unbody-io / ts-client

Typescript client for Unbody's API
https://unbody.io/docs/libraries/typescript-client
7 stars 1 forks source link

[new feature] Let's Make Our TS Client Friendlier for Non-AI Devs 😊 #7

Open amirhouieh opened 11 months ago

amirhouieh commented 11 months ago

Hey Team πŸ‘‹,

Hope everyone's doing great! So, I've been thinking a bit about our TypeScript client and how it's currently a mirror image of Weaviate's methods. It's cool and all, but it kinda feels like we're speaking a different language than our target users – the non-AI devs out there.

What's on My Mind

Our current method names are straight out of the AI textbook, which is great for the AI pros but maybe not so much for web developers and others. Take "nearText", for example. Makes total sense if you're into LLMs and NLP, but to a regular dev, it might as well be hieroglyphics.

Some Quick-fix Ideas

I was playing around with some ideas to make our methods more like everyday language. Here's what I came up with:

Making Things Easier to Use

Also, I was thinking, why not jazz up our methods a bit? Like, our nearImage (or similarImages, hopefully) could be way more flexible. Why limit ourselves to base64? Let's throw in support for image-url, buffer, `? and other formats that front-end folks love.

Lighter and Faster?

And just throwing it out there – what if we had a lighter version of our client? Something that’s super easy and straightforward, focusing only on the most popular stuff. Like, changing unbody.get.googleDoc to just unbody.googleDoc.

Your Thoughts?

I’d really love to hear what you guys think about this. Are these changes doable? Would they help? Got any tweaks or totally different ideas? Let's chat about it!