Next.js and GPT-4: A Guide to Streaming Generated Content as UI ComponentsUntil now, most interfaces for dynamic content from large language models (LLMs) were chat interfaces or text autocompletion. With structured outputs, we can now stream complex content and show it incrementally in UI components like lists and tables....Jan 31, 2024 · 13 min readp42.hashnode.dev
Effortlessly Generate Structured Information with Ollama, Zod, and ModelFusionIn this blog post, we'll create a JavaScript function that does just that. Our function will take a country as input and output a curated list of cities perfect for a weekend getaway in that country. For this task, we'll use several tools: Ollama is...Jan 19, 2024 · 7 min readp42.hashnode.dev
Create Your Own Local Chatbot with Next.js, Llama.cpp, and ModelFusionIn this blog post, we'll build a Next.js chatbot that runs on your computer. We'll use Llama.cpp to serve the OpenHermes 2.5 Mistral LLM (large language model) locally, the Vercel AI SDK to handle stream forwarding and rendering, and ModelFusion to i...Jan 13, 2024 · 7 min readp42.hashnode.dev
Create Your Own Local Chatbot with Next.js, Ollama, and ModelFusionIn this blog post, we'll build a Next.js chatbot that runs on your computer. We'll use Ollama to serve the OpenHermes 2.5 Mistral LLM (large language model) locally, the Vercel AI SDK to handle stream forwarding and rendering, and ModelFusion to inte...2JHDec 10, 2023 · 7 min readp42.hashnode.dev
PDF Chat with Node.js, OpenAI and ModelFusionIn this blog post, we'll build a console app capable of searching and understanding PDF content to answer questions using Node.js, OpenAI, and ModelFusion. You'll learn how to read and index PDFs for efficient search and deliver precise responses by ...Sep 4, 2023 · 9 min readp42.hashnode.dev