인공지능 개발자 수다(유튜브 바로가기) 자세히보기
반응형

분류 전체보기 168

[LangGraph] 실행 흐름 제어(command, send, loop, 분기, 동적 라우팅)

langgraph 버전: 0.6.4내용 출처 : LangGrapn Docs LangGraphLangGraph Trusted by companies shaping the future of agents – including Klarna, Replit, Elastic, and more – LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents. Get started Install LangGrlangchain-ai.github.io 1. 개요LangGraph 에서는 단순한 직선형 실행뿐만 아니라,조건 분기동적 라우팅Map-Reduce, 병렬 실행반복 실행(Lo..

[LangGraph] Persistence & Durable Execution

langgraph 버전: 0.6.4내용 출처 : LangGrapn Docs LangGraphLangGraph Trusted by companies shaping the future of agents – including Klarna, Replit, Elastic, and more – LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents. Get started Install LangGrlangchain-ai.github.io 1. 개요LangGraph에서는 그래프 실행을 단순히 invoke()로 끝내는 대신,스트리밍으로 중간 결과를 확인하거나,실행 상태..

[LangGraph] 모델(Model)과 툴(tool)

langgraph 버전: 0.6.4내용 출처 : LangGrapn Docs LangGraphLangGraph Trusted by companies shaping the future of agents – including Klarna, Replit, Elastic, and more – LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents. Get started Install LangGrlangchain-ai.github.io 1. 개요LangGraph는 단순히 LLM을 호출하는 프레임워크가 아니라, LLM과 다양한 도구(Tool)를 결합해 복잡한 작업을..

[LangGraph] 워크플로우(workflow)

langgraph 버전: 0.6.4내용 출처 : LangGrapn Docs LangGraphLangGraph Trusted by companies shaping the future of agents – including Klarna, Replit, Elastic, and more – LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents. Get started Install LangGrlangchain-ai.github.io 1. 개요LangGraph는 워크플로우를 구성할 때 두 가지 방식을 제공합니다.Graph API: 노드와 엣지를 명시적으로 정의하..

[LangGraph] 노드(node)와 엣지(edge)

langgraph 버전: 0.6.4내용 출처 : LangGrapn Docs LangGraphLangGraph Trusted by companies shaping the future of agents – including Klarna, Replit, Elastic, and more – LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents. Get started Install LangGrlangchain-ai.github.io 1. 노드 (Node)1.1. 노드 개념노드는 데이터를 입력받아 처리한 뒤 결과를 반환하는 실행 단위다.LangGraph에서는 ..

[LangGraph] State

langgraph 버전: 0.6.4내용 출처 : LangGrapn Docs LangGraphLangGraph Trusted by companies shaping the future of agents – including Klarna, Replit, Elastic, and more – LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents. Get started Install LangGrlangchain-ai.github.io 1. State 개념그래프의 전체 상태를 나타내는 데이터 구조그래프를 만들 때 가장 먼저 정의그래프에서 사용될 데이터 구조(sch..

[LangGraph] 스트림(Stream) 호출(invoke)

langgraph 버전: 0.6.4내용 출처 : LangGrapn Docs LangGraphLangGraph Trusted by companies shaping the future of agents – including Klarna, Replit, Elastic, and more – LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents. Get started Install LangGrlangchain-ai.github.io 1. 개요이번 포스팅에서는 LangGraph에서 제공하는 스트리밍 기능을 소개합니다. 이를 통해 그래프의 상태 변화, LLM 출력..

[FastAPI] 트렌젝션 사용하기 (17)

1. 개요Python 버전: 3.11FastAPI 버전: 0.116.1SQLAlchemy 버전: 2.0 이상 웹 애플리케이션에서 데이터베이스 작업은 필수적이다. 하지만 여러 개의 데이터 조작 작업을 수행할 때, 중간에 오류가 발생하면 데이터의 일관성이 깨질 수 있다. 이를 방지하기 위해 사용하는 개념이 바로 트랜잭션(Transaction)이다. FastAPI는 SQLAlchemy와 같은 ORM(Object Relational Mapper)을 활용해 트랜잭션을 쉽게 처리할 수 있게 도와준다. 이번 글에서는 FastAPI에서 트랜잭션을 어떻게 안전하게 사용하는지 알아보고, 실전 코드 예시도 함께 제공한다. 2. 내용2.1. 트렌젝션 이란트랜잭션(Transaction)은 하나의 논리적 작업 단위를 의미합니다...

Fastapi 2025.08.02

[Langchain] Splitter (Chunker) 만들기

0. 개요RAG를 하기 위해 데이터를 모으는 과정에서데이터를 일정 크기로 잘라야 한다.오늘은 문자열을 자르는 다양한 기법에 대해 공부해 보자 Langchain version : 0.3.25 1. Fixed-size 기반 분할1.1. 개념Fixed-size 기반 분할은 텍스트를 일정한 길이 단위로 잘라내는 방식이다.길이 기준은 문자 수(character) 혹은 토큰 수(token) 로 설정할 수 있다.예를 들어, 한 텍스트를 500자 단위로 나누거나, OpenAI tokenizer 기준 300토큰 단위로 나누는 것이 이에 해당한다.보통은 chunk overlap을 함께 사용해 문맥 단절을 완화한다. 1.2. 장점과 단점장점단점✔ 구현이 간단하고 빠르다✘ 의미 단위가 끊길 수 있다 (문장 중간에서 분할)✔ ..

[CSS] Flexbox를 이용한 레이아웃 정렬

1. 개요CSS Flexbox(Flexible Box)는 1차원 방향(가로 또는 세로)으로 요소를 배치하고 정렬할 수 있게 해주는 레이아웃 시스템이다.Next.js로 웹 UI를 구성할 때도 가장 많이 사용되는 방식이며, 기존의 float이나 inline-block 방식보다 훨씬 직관적이다.이 글에서는 Flexbox의 핵심 속성과 쓰임새를 예제와 함께 정리한다. flexbox는 다음과 같은 경우에 주로 사용한다.버튼 옆에 아이콘네비게이션 바카드 목록 (가로/세로 정렬)텍스트 + 이미지 한 줄 배치 block은 다음과 같은 경우 사용한다.단락 구분, 제목/본문 2. 내용2.1. display: flex의 기본 구조Flexbox는 부모 요소에 display: flex를 선언하면 작동한다.부모는 컨테이너, 자식..

프론트엔드/CSS 2025.06.29
반응형