Dec. 2, 2023, 6:43 p.m. | Lars Grammel

DEV Community dev.to

In 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 integrate Ollama with the Vercel AI SDK. The chatbot will be able to generate responses to user messages in real-time.


The architecture looks like this:



You can find a full Next.js, Vercel AI SDK, Ollama & ModelFusion starter with …

ai beginners blog build chatbot computer javascript language language model large language large language model llm mistral next next.js ollama opensource rendering sdk serve vercel vercel ai sdk

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Software Engineer, Data Tools - Full Stack

@ DoorDash | Pune, India

Senior Data Analyst

@ Artsy | New York City