Initial commit: LangChain evolution tutorial deck (132 slides)
- Cover, TOC, 5 dividers, 3 recap slides - 5 sections (chains, langgraph, deepagents, openswe, ecosystem) - design-system.js with theme tokens + 9 helper functions - research/: timeline + sources + per-tech notes - final-compile.js + merge.js for rebuild pipeline - output/: langchain-evolution.pptx (2.3 MB) + langchain-evolution.pdf (1.1 MB) + 7 sample previews
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
// Slide 26: Pros / Cons -- when LangChain 1.0 is the right choice
|
||||
// Content slide: pros/cons two-column panel.
|
||||
|
||||
const ds = require('./design-system');
|
||||
|
||||
function createSlide(pres, theme) {
|
||||
const slide = pres.addSlide();
|
||||
ds.helpers.slideBase(slide, pres, theme);
|
||||
|
||||
ds.helpers.addHeader(slide, pres, theme, {
|
||||
eyebrow: 'STAGE 1: CHAINS',
|
||||
section: 'Итоги',
|
||||
title: 'Когда LangChain 1.0 -- правильный выбор',
|
||||
sectionNumber: 1,
|
||||
});
|
||||
|
||||
// Lead paragraph
|
||||
slide.addText(
|
||||
'Production-ready commitment, единая точка входа для агентов, ' +
|
||||
'встроенные middleware. Но абстракция скрывает LangGraph -- если нужен ' +
|
||||
'fine-grained контроль над execution, придется проваливаться глубже.',
|
||||
{
|
||||
x: 0.5, y: 1.5, w: 9.0, h: 0.6,
|
||||
fontFace: ds.helpers.withFallback(theme.fonts.ui),
|
||||
fontSize: 13, italic: true,
|
||||
color: theme.palette.text.secondary,
|
||||
align: 'left', valign: 'top', margin: 0,
|
||||
}
|
||||
);
|
||||
|
||||
ds.helpers.addProsCons(slide, pres, theme, {
|
||||
x: 0.5, y: 2.25, w: 9.0, h: 2.5,
|
||||
pros: [
|
||||
'Семантическая стабильность -- обязательство не ломать API до 2.0',
|
||||
'create_agent вместо зоопарка agent-типов',
|
||||
'init_chat_model -- переключение провайдера без рефакторинга',
|
||||
'Middleware-система (HITL, PII, Summarization) из коробки',
|
||||
'LangGraph-runtime под капотом -- durable execution бесплатно',
|
||||
'~700+ интеграций через community-пакеты langchain-*',
|
||||
],
|
||||
cons: [
|
||||
'Кривая обучения для middleware (before/after hooks)',
|
||||
'Часть экосистемы переехала в langchain-classic -- миграционная боль',
|
||||
'Абстракция скрывает LangGraph -- для fine-grained нужен fallback',
|
||||
'Bundled-версии зависимостей (langchain-openai, -anthropic, ...) нужно фиксировать',
|
||||
'Исторически bloated core -- в 1.0 стало lean, но восприятие осталось',
|
||||
],
|
||||
});
|
||||
|
||||
ds.helpers.addSourceLine(slide, pres, theme, {
|
||||
source: 'changelog.langchain.com/announcements/langchain-1-0-now-generally-available',
|
||||
});
|
||||
ds.helpers.addPageNumber(slide, pres, theme, 26);
|
||||
}
|
||||
|
||||
module.exports = { createSlide };
|
||||
Reference in New Issue
Block a user