Files
petya 75601988c2 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
2026-06-22 11:29:03 +03:00

49 lines
1.7 KiB
JavaScript

// Slide 03: Installation -- pip install + provider packages
// Code slide: shows the actual install commands a user needs to run.
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: 'pip install -- и сразу в дело',
sectionNumber: 1,
});
ds.helpers.addCodeBlock(slide, pres, theme, {
x: 0.5, y: 1.5, w: 9.0, h: 3.25,
language: 'bash',
filePath: 'shell/install.sh',
code: [
'# 1. Core -- обязательно для всех остальных пакетов',
'pip install langchain',
'',
'# 2. Provider-интеграции -- ставим только те, что нужны',
'pip install langchain-openai',
'pip install langchain-anthropic',
'pip install langchain-google',
'',
'# 3. (опционально) дополнительные интеграции',
'pip install langchain-community # ~700 community-пакетов',
'pip install langchain-classic # legacy chains/AgentExecutor',
].join('\n'),
});
// Callout: ключевая мысль
ds.helpers.addCallout(slide, pres, theme, {
x: 0.5, y: 4.85, w: 9.0, h: 0.3,
kind: 'info',
text: 'langchain-core тянется автоматически как зависимость langchain -- отдельно ставить не нужно.',
});
ds.helpers.addSourceLine(slide, pres, theme, {
source: 'python.langchain.com/docs/introduction/#installation',
});
ds.helpers.addPageNumber(slide, pres, theme, 3);
}
module.exports = { createSlide };