News for hackers. Stuff that matters.
Re:Using LangChainJS and Cloudflare Workers together by theogravity on Thursday May 18, 2023 @12:24PM (#35990323)
This is awesome. I just implemented ChatGPT into a demo and am now looking into vector databases. I'd love to be able to swap between different models and databases and LangChainJS looks like a good abstraction to use to do this.
Re:Using LangChainJS and Cloudflare Workers together by shakes on Thursday May 18, 2023 @12:34PM (#35990454)
Using LangChain definitely shifted how I was building with language models. It took me a couple days to really wrap my head around the possibilities, so if you feel similarly when you're getting started don't worry.

If you have any specific questions, or want to chat with someone else using it, please don't be shy. My email and twitter handle are both in my profile. I truly love talking about all of this and hearing what other folks are working on.

Re:Using LangChainJS and Cloudflare Workers together by theogravity on Thursday May 18, 2023 @08:29PM (#35996293)
Thank you for the offer!
Re:Using LangChainJS and Cloudflare Workers together by rita3ko on Thursday May 18, 2023 @01:48PM (#35991584)
we (cloudflare) have a great example of a vector database build on workers + kv here: https://ai.cloudflare.com/demos/vector-store/

(plan to talk about how we built it soon)

edit: clarify i work at cloudflare

Re:Using LangChainJS and Cloudflare Workers together by ignoramous on Thursday May 18, 2023 @03:38PM (#35992996)
> plan to talk about how we built it soon

Neat! Reminds me of using DynamoDB as a multi-dimensional store with (space-filling curve) z-order indexing [0], which isn't as fast (as native spatial databases, say) but it works. I wonder how performant retrofitting Workers KV is compared to a native vector database? Please do publish benchmarks, if possible.

[0] https://archive.is/ZGY1T / https://news.ycombinator.com/item?id=30009893

Re:Using LangChainJS and Cloudflare Workers together by iib on Thursday May 18, 2023 @03:57PM (#35993268)
Is this open source somewhere? It seems interesting to study