1. Introduction to LangChain and AI workflow architecture
LangChain provides a modular foundation for structuring AI applications instead of treating model calls as isolated steps. This section maps the roles of models, chains, agents, and tools within a workflow. Typical use cases include chatbots, RAG systems, recommendation scenarios, and task automation.
- what LangChain is and what role it plays in the AI ecosystem,
- modular architecture: models, chains, agents, tools,
- typical applications of LangChain: chatbots, RAG, recommendation systems, task automation.
2. Building chatbots with locally and remotely hosted LLM models
Local and cloud-hosted LLMs introduce different integration patterns, constraints, and control points. The section covers connecting local models through REST API or libraries, as well as configuring API keys and limits for remote services. It also includes conversational memory, context handling, and custom query handlers.
- integration with local models (REST API, local libraries, access control),
- connection with cloud-based LLMs – API key configuration and handling limits,
- implementation of conversational memory and control of conversation context,
- creation of custom query handlers and personalization of responses.
3. Understanding the concept of RAG
RAG changes the way language models answer questions by retrieving external knowledge before generation. This section contrasts that approach with a classic standalone LLM workflow and explains the retrieval-to-response sequence. It also positions LangChain as a framework for building flexible RAG pipelines.
- the difference between the classical LLM approach and RAG,
- operation scheme: knowledge retrieval → response generation,
- the role of LangChain in building flexible RAG pipelines.
4. Preparation and processing of source documents
Before retrieval can work well, source materials must be normalized and divided in a usable way. The section covers handling PDF, DOCX, HTML, and TXT files, along with segmentation and metadata extraction. It also includes initial content cleaning and chunking decisions that shape later stages.
- handling formats: PDF, DOCX, HTML, TXT,
- document segmentation and metadata extraction,
- initial content cleaning and chunking strategy.
5. Selection and integration of vector databases
Choosing a vector database affects retrieval strategy, maintenance model, and deployment setup. This part compares local and cloud options, then moves to index creation and update workflows. It also addresses metadata filtering and personalization mechanisms that refine search results for different queries.
- comparison of local and cloud solutions,
- creating vector indexes and updating them,
- metadata filtering and personalization of search results.
6. Embedding content
Embeddings determine how content is represented for later semantic retrieval. Participants compare available embedding models, then review how to create and test custom embeddings for specific needs. The section also explains how these representations are connected to the larger RAG pipeline.
- comparison of ready-made embedding models,
- creating and testing your own embeddings,
- integration of embeddings with the RAG pipeline.
7. Extension with a simple knowledge classifier
A lightweight classifier can improve decision-making before retrieval or generation begins. The section explains when such a classifier is useful, how to choose features and labels, and how to define the prediction structure. It then shows how classification fits into a broader decision pipeline.
- introduction of the classifier: why and when to use it,
- selection of features, labels and the prediction structure,
- integration of the classifier in the decision pipeline.
8. Building and testing a complete RAG pipeline
From source retrieval to final answer, a RAG pipeline must be assembled as one coherent flow. This section connects embeddings, database operations, and response generation, then examines how to test relevance and answer quality. It also covers diagnosing empty results, poor responses, and hallucinations.
- connecting all components: source → embedding → database → response,
- testing the quality and relevance of responses,
- diagnostics of errors: empty results, inadequate responses, hallucinations.
9. MCP Architecture in LangChain
MCP in LangChain is presented through the path data takes from user input to generated output. Participants analyze the roles of input, processing, and generation components, and how they interact inside a workflow. Practical examples help relate the architecture to concrete implementation patterns.
- data flow: user → chain → model,
- MCP components: input, processing, generation,
- examples of practical applications.
10. Creating and connecting chains
Building with LangChain means shaping how processing steps connect and react to input. This section discusses simple, sequential, and parallel chains, along with handling dynamic parameters. It also addresses data transformations and conditional flow control so outputs can influence the next stage of execution.
- types of chains: simple, sequential, parallel,
- handling dynamic parameters and input data,
- data transformations and flow conditioning.
11. Designing dynamic and contextual prompts
Dynamic prompting links model instructions with application logic and available context. The section explains the difference between prompts used as fixed templates and prompts assembled from rules. It also covers variables, historical and dependent data, plus adaptive behaviors when required information is missing.
- prompt as a template vs prompt as the result of logic,
- handling variables, historical and dependent data,
- building adaptive prompts (e.g. „If the user did not provide X…”).
12. Automation of interactions with the user
Agents can move a dialogue forward instead of waiting for perfectly formed input. In this section, the focus is on follow-up questions, intent recognition, and query classification that support automated interaction. Context-aware conversation with memory is used to keep exchanges consistent across turns.
- creating agents asking follow-up questions,
- intent recognition and query classification,
- handling contextual conversation with memory.
13. Handling multiple data sources and components in one workflow
Combining several knowledge sources in one workflow requires clear routing and context control. Participants examine how RAG can work with MCP and additional repositories, and how queries are directed to different models or databases after classification. The section also covers switching between contexts and sources.
- combining RAG with MCP and additional knowledge sources,
- routing queries to different models / databases depending on classification,
- managing context switching and information sources.
14. Solving synchronization and conversation memory problems
Conversation quality often breaks down when context is lost between turns or sessions. This part addresses session handling, storage and reuse of chat history, and methods for managing incomplete user input. Fallback strategies are discussed as a way to keep flows usable despite missing data.
- user session management,
- storing and using conversation history,
- fallback strategies and recognition of incomplete data.
15. Vectorization and knowledge base management
Vector knowledge bases rely on careful preparation before retrieval quality can be improved. Here the focus is on cleaning data, segmentation, metadata design, and choosing an appropriate chunking strategy. The section also includes index creation, versioning, updates, semantic search, and metadata filtering.
- preparation of data for vectorization: cleaning, segmentation, metadata,
- selection of chunking strategy and creation of vector indexes,
- storage, updating and versioning of the vector knowledge base,
- semantic search and metadata filtering in queries.
16. Processing various types of documents and media
Working with real knowledge sources requires more than plain text ingestion. The section covers extraction from PDF, office files, HTML, and other structured or unstructured content, then extends to OCR, images, and video subtitles. It also shows how multimodal inputs can feed one RAG flow.
- handling structured and unstructured texts,
- processing and extraction of data from PDF, office documents, HTML,
- working with visual data: OCR, images, video subtitles,
- integration of multimodal data sources in one RAG flow.
17. Automation and scaling of AI processes
As AI usage grows, individual workflows must be turned into repeatable and scalable processes. The section addresses how to organize execution so solutions handle higher load, recurring tasks, and broader operational use. Attention is given to maintaining control over reliability as automation expands.
18. Security, ethics and responsibility in AI systems
Security in AI systems depends on both technical safeguards and accountable operation. Participants work through data storage, access control, response validation, and ways to reduce hallucinations. The section also addresses GDPR, privacy, compliance, and auditability of system decisions.
- secure data storage and access control,
- limiting „hallucinations” and validation of the model's responses,
- GDPR, user privacy and regulatory compliance,
- responsibility for decisions made by the system and auditability of actions.
19. Maintenance, monitoring and development of implemented solutions
Once a solution is in production, logs become the main source for improving it. This section focuses on registering user queries, reviewing conversation traces, and tracking response quality with a feedback loop. It also covers refactoring and extending existing chains and prompting logic.
- registering queries and analyzing conversational logs,
- monitoring response quality and user feedback loop,
- refactoring and expansion of existing chains and prompting models.