Tag: llm
All the articles with the tag "llm".
-
LangGraph Study Log #2 — Extending State + Dynamic System Prompts + Chatbot (and the Truth Behind 'AI Remembers')
I extended State beyond just messages to include user name, tool call count, and session start time, then used that State to dynamically build the system prompt. Along the way, building a chatbot led me to the real revelation of the day: what 'memory' actually is.
-
LangGraph Study Log #1 — My First Graph + Why State Confused Me
Starting LangGraph, one of the study candidates I had noted down. Building nodes, edges, conditional branches, and loops with StateGraph was more intuitive than expected, but the term 'State' didn't click for a while. I finally settled on it by comparing it to a game character's inventory and HP.
-
Building a RAG Q&A System with Chroma + My Blog — From Parts to System
Yesterday I played with the parts of RAG (embedding / cosine similarity / chunks). Today, I put them together into a system. I introduced the Chroma vector DB, indexed 270 chunks from my blog, and built a Q&A system with OpenAI + Claude. The most memorable moment was when it answered 'I don't know' to a question about information not covered on my blog.
-
Building RAG from Scratch — Embedding, Cosine Similarity, Chunk Search (with Korean vs English Comparison)
Carving out the inside of RAG (Retrieval-Augmented Generation) with actual code, from what embedding even is to debugging suspicious results. I pulled 1536-dimension vectors with OpenAI's text-embedding-3-small, compared them with cosine similarity, compared Korean vs English performance, and worked through chunk splitting. Surprisingly, Korean embedding similarity turned out to be lower.