Tag: workers
Previously I looked at AI function calls as a means to obtain structured output such as JSON. This time we'll look at using LangChain to achieve the same end, but with more flexibility and support for fail retries.
AI functions are a means of harnessing generative AI to obtain predictable pieces of data that can then be used in upstream code. In this guide we'll look at both 'traditional' and 'embedded' flavours, via Cloudflare.
In this tutorial I'll show you a couple of ways to upload files to Cloudflare's version of S3 storage, known as R2, from a Cloudflare Worker. We'll look at both indirect and (via presigned URLs) direct uploads.