When experimenting with base or pretrained language models, the barrier to find a model can be high, since most available models are now instruction-tuned.

That’s why I wanted to share a couple of quick, practical ways to run these models, both through hosted APIs and locally, so you can start try...

Building a Toy Project with LlamaIndex, Next.js, and Ollama

In one of my previous blog posts, I introduced LlamaIndex—a powerful framework for building LLM applications. In this post, I’d like to take it a step further by creating a toy project using a Next.js backend paired with the Olla...

Requirements:

pip install langgraph langchain_ollama 

Here is the complete code for building a chatbot that uses Ollama as its provider:

from typing import Annotated
from typing_extensions import TypedDict
from langgraph.graph import StateGraph, START, END
from langgraph.graph.message import a...