Tech Ocean
Author

Tech Ocean

Focused on AI programming, sharing ready-to-use development efficiency solutions.

140
Articles
0
Likes
1
Views
0
Comments
Recent Articles

Latest from Tech Ocean

100 recent articles max
Tech Ocean
Tech Ocean
Apr 25, 2026 · Artificial Intelligence

Using InMemorySaver to Give LangGraph Agents Persistent Conversation Memory

The article explains LangGraph’s checkpoint system that lets agents retain dialogue context, detailing the InMemorySaver for development and PostgresSaver for production, how to use checkpointer.put/get, thread_id for session isolation, manual state manipulation, and time‑travel replay, with full Python examples.

Agent MemoryInMemorySaverLangGraph
0 likes · 5 min read
Using InMemorySaver to Give LangGraph Agents Persistent Conversation Memory
Tech Ocean
Tech Ocean
Apr 25, 2026 · Artificial Intelligence

Hands‑On ReAct with LangGraph: Dissecting the AI Reason‑Act‑Observe Loop

This tutorial explains the ReAct (Reason‑Act‑Observe) loop in LangGraph, shows how to control execution branches with conditional edges, provides a full hand‑written agent example, demonstrates the convenience of the prebuilt create_react_agent, and covers multi‑turn dialogue, streaming output, and loop‑count limits.

AgentLangChainLangGraph
0 likes · 5 min read
Hands‑On ReAct with LangGraph: Dissecting the AI Reason‑Act‑Observe Loop
Tech Ocean
Tech Ocean
Apr 25, 2026 · Artificial Intelligence

LangGraph Day 2: Watching State Changes Like a TV Series with State + Reducer

This article explains LangGraph’s two state‑update modes—overwrite and merge—shows how to use Annotated with custom reducers such as operator.add or add_messages, demonstrates when reducers run, and provides full Python examples, including persistence with checkpointers and custom merge functions.

AI agentsAnnotatedLangGraph
0 likes · 6 min read
LangGraph Day 2: Watching State Changes Like a TV Series with State + Reducer
Tech Ocean
Tech Ocean
Apr 25, 2026 · Artificial Intelligence

Master StateGraph in 5 Minutes: Visualizing Agent Logic with LangGraph

This article explains how LangGraph’s graph‑based StateGraph lets you model agent workflows visually, contrasting it with LangChain’s high‑level API, detailing the three core components, showing complete Python examples, and highlighting benefits such as easier debugging, extensibility, and checkpoint support.

AgentGraphLangGraph
0 likes · 7 min read
Master StateGraph in 5 Minutes: Visualizing Agent Logic with LangGraph
Tech Ocean
Tech Ocean
Apr 23, 2026 · Artificial Intelligence

Day 7: LangChain Full‑Map Overview and 6 Interview Questions

This article presents a complete LangChain architecture diagram, quick‑reference tables for core modules, a side‑by‑side comparison with LlamaIndex and Haystack, practical interview Q&A covering advantages, RAG optimization, Agent vs Chain differences, token‑cost reduction, and a seven‑day recap with advanced learning paths.

AgentChainInterviewPrep
0 likes · 13 min read
Day 7: LangChain Full‑Map Overview and 6 Interview Questions
Tech Ocean
Tech Ocean
Apr 23, 2026 · Artificial Intelligence

Day 6 of LangChain Series: Using Memory and Chains to Make AI Remember Context

This article explains why LLMs need memory, compares BufferMemory and ConversationSummaryBufferMemory, demonstrates how to build memory‑aware chains with LangChain Expression Language (LCEL), and shows practical examples including translation, RAG, and callbacks for monitoring chain execution.

ChainLCELLLM
0 likes · 12 min read
Day 6 of LangChain Series: Using Memory and Chains to Make AI Remember Context
Tech Ocean
Tech Ocean
Apr 23, 2026 · Artificial Intelligence

Day 5 of LangChain Series: Unpacking the AI “Think‑Act” Loop with Agents and Tools

This article explains how LangChain agents use a ReAct (Reasoning‑Acting) loop to decide when and which tools to invoke, shows built‑in and custom tools via the @tool decorator, compares ReAct with GPT‑4 native tool calling, and demonstrates a research‑assistant workflow that cuts report drafting time from hours to minutes.

AI agentsAgentLangChain
0 likes · 11 min read
Day 5 of LangChain Series: Unpacking the AI “Think‑Act” Loop with Agents and Tools
Tech Ocean
Tech Ocean
Apr 22, 2026 · Artificial Intelligence

Day 4 of LangChain 7‑Day Series: Build a Full‑Chain RAG QA Bot Step‑by‑Step

This tutorial walks through the complete RAG pipeline—indexing documents into a vector store, retrieving relevant chunks with similarity, Top‑K, and MMR methods, and generating answers using LCEL chains, culminating in a multi‑turn internal knowledge‑base chatbot that cuts query latency below 100 ms.

ChatOpenAILLMLangChain
0 likes · 11 min read
Day 4 of LangChain 7‑Day Series: Build a Full‑Chain RAG QA Bot Step‑by‑Step
Tech Ocean
Tech Ocean
Apr 22, 2026 · Artificial Intelligence

Turning Large PDFs into Vectors with LangChain: Split, Embed, and Retrieve

Because LLMs have limited context windows, the article shows how to feed a 50‑page PDF to an AI by loading the document, splitting it into manageable chunks, converting each chunk into embeddings, storing them in a vector database, and then retrieving the most relevant passages for answering questions.

LLMLangChainPython
0 likes · 9 min read
Turning Large PDFs into Vectors with LangChain: Split, Embed, and Retrieve