Browsed by
[Category:] 공부

숲 해설을 위한 영어 공부

The role of MessagesPlaceholder in LangChain.js

The role of MessagesPlaceholder in LangChain.js

The MessagesPlaceHolder in LangChain.js plays a crucial role in enabling dynamic and flexible construction of chat prompts by acting as a placeholder for a list of messages within a ChatPromptTemplate. Its primary functions are Dynamic Message Insertion It allows you to inject a list of BaseMessage objects (like HumanMessage, AIMessage, SystemMessage, etc) into a specific position within your chat prompt template during runtime. This is particularly useful for managing chat history, where the list of past messages needs to be…

Read More Read More

China’s Rare Earth Origin Story, Explained

China’s Rare Earth Origin Story, Explained

Low environmental standards helped China become the world’s low-cost producer of rare earths, but Beijing was also focused on helping the industry. 몇 달 전 중국이 희토류의 수출을 일시 중단할 때까지 대부분의 세계 지도자들은 희토류를 그리 중요하게 생각하지 않았다. 그러나 약 반 세기동안 중국 정부의 최고위급들은 이들 희토류에 대해 꾸준한 관심을 가져왔다. 마오쩌둥이 27년의 통치기간 동안 얼마만큼의 철과 스테인레스를 생산 할지에만 초점을 맞췄지 품질에는 크게 신경을 쓰지 않았다. 그 결과 업계의 요구를 충족시키지 못하는 저품질의 철과 스테인레스의 생산만 많아졌다. 1940년대…

Read More Read More

Langgraph – Edges

Langgraph – Edges

Edges define how the logic is routed and how the graph decides to stop. This is a big part of how your agents work and how different nodes communicate with each other. There are a few key types of edges: A node can have MULTIPLE outgoing edges. If a node has multiple out-going nodes, all of those destination nodes will be executed in parallel as a part of the next superstep.

LLM Based Agent

LLM Based Agent

“A little piece of advice. You see an agent, you do what we do. Run!” – Cypher to Neo in the movie, “The Matrix” When it comes to LLM-based agents, there is no universally accepted definition, but we can extend the philosophical definition to say that an agent is an intelligent(?) entity that leverages LLMs to solve complex tasks by interacting with the environment via a set of tools. Since LLMs possess good understanding, reasoning & generation capabilities, it makes…

Read More Read More

Java Virtual Threads and Enterprise Scalability

Java Virtual Threads and Enterprise Scalability

Java언어로 Enterprise 어플리케이션을 작성하거나 기존의 Enterprise 어플리케이션이 있다면 Virtual Thread에 관심을 둘 필요가 있다. Virtual Thread는 Java 21에 소개된 새로운 기능으로 어플리케이션의 확장성(Scalability)를 획기적으로 높여주며 프로젝트에 드는 비용을 줄여 준다. 이 문서는 문제의 근간을 들여다 봄으로써 Virtual Thread를 활용할 경우 왜 확장성이 개선 되는지를 설명하고자 한다. Platform Thread Java 21 이전에 구현된 Thread를 Platform Thread 라고하며 근본적으로 OS(Operating System) Thread를 Wrapping한 형태로 구현되어 있다. 따라서 Platform Thread와 OS Thread간의 관계는 1:1 매핑이라고 생각하면 된다. 위 그림을 보면 가장 밑 부분은…

Read More Read More

A.I. is Getting More Powerful, but Its Hallucinations are Getting Worse

A.I. is Getting More Powerful, but Its Hallucinations are Getting Worse

최근 A.I. 모델은 추론모델(Reasoning)을 기반으로 한다. OpenAI, Google, DeepSeeke들도 이런 추론모델을 기반으로 A.I. bot들을 만들고 있다. 하지만 이른 추론모델을 기반으로 하는 A.I.가 이전 모델보다 hallucination이 더 심해지고 있다. OpenAI의 경우 가장 강력하다고 하는 모델인 o3모델에서 PersonQA테스트를 했을 때 33%의 hallucination이 발생했다고 하며 이는 이전의 추론 시스템인 o1보다 두 배 이상의 hallucination이 발생되는 수치이다. 새 모델인 o4-mini는 이보다 더 높은 48%의 hallucination이 발생되고 있다. Hallucination을 줄이기 위한 노력들은 하고 있지만 모델이 방대한 데이터를 기반으로 학습을 하기 때문에 원인을 정확하게 어떤 경로를…

Read More Read More

Clean Architecture: A Craftsman’s Guide to Software Structure and Design

Clean Architecture: A Craftsman’s Guide to Software Structure and Design

오랫만에 Software Architecture에 관한 책을 읽었다. 이 책을 선택한 배경은 Software Architecture에 관해 비교적 최근(2018)에 나온 책이고 저자가 그 유명한 밥아저씨(Uncle Bob, Robert C. Martin)이기 때문이다. 이 책을 읽으면서 과거 한 때 Software Engineering에 심취해서 여러가지 개념들, 그리고 실제 코드로 적용해 본 기억들이 나면서 한 때 사용하지 않아 소실 됐던 근육이 다시 단련되는 기분이다. 책 전반적으로 실무 코드를 기반으로 설명하는 것이 아니라 개념적으로 접근하고 있어 아마도 초보 개발자들에게는 좀 어려운 내용이지 않을까 생각한다. 하지만 한 번 쯤 귓등으로라도 읽어 놓으면…

Read More Read More

The Hidden Complexity of Event-Driven Systems

The Hidden Complexity of Event-Driven Systems

While decoupling sounds great in theory, it often introduces invisible coupling – dependencies on event contracts, formats, topics, and message semantics. Here is where things get messy: What was meant to simplify scalability ends up complicating development and operations – especially for small and mid-sized teams.

Model Context Protocol

Model Context Protocol

The Model Context Protocol (MCP) is a standard developed by Anthropic that enables AI models to use tools by defining a structured format for tool descriptions, calls, and responses. It defines a standardized way for LLMs to discover, call, and use tools, often hosted on local or remote servers, via HTTP + JSON RPC2.0. Function calling is like giving LLM a calculator app. MCP is like giving LLM an App Store — which can browse, discover, and use any available tool on its…

Read More Read More

OpenAI Unveils Technology That Can ‘Reason’ With Images

OpenAI Unveils Technology That Can ‘Reason’ With Images

The company also introduced a new tool that helps computer programmers use chatbots when writing code. In September(2024), OpenAI introduced A.I. technology that could “reason” through tasks involving math, coding and science. Now, this technology can tackle similar tasks that involve images, including sketches, posters, diagrams and graphs. On Wednesday(2025.4.16), the company unveiled two new versions of its reasoning technology called OpenAI o3 and OpenAI o4-mini. Each can handle tasks that involve both images and text. These systems can “manipulate, crop and…

Read More Read More