> For the complete documentation index, see [llms.txt](https://agenticai.kasinathanramesh.vip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agenticai.kasinathanramesh.vip/section-2-basics-of-langchain-and-langgraph.md).

# Section 2 : Basics of LangChain and LangGraph

## What is LangChain?

* LangChain is a framwework.
* Its a Template.no need to develop from scratch. we ca use the framework and make customization
* Its open Source.
* LangChain is used to develop applications that operate on **Large Language Models (LLMs)**, enabling them to perform tasks such as reasoning, data retrieval, and interaction with external systems.
*

LangChain we can compare with building Materials

{% columns %}
{% column %}
**Building Materials**

1.Cement

2.Water

3.Aggregate

4.Bricks

{% endcolumn %}

{% column %}
**LangCain Tools**

1.LLM

2.Prompt Template

3.Chain

4.Memory

5.AI Agent

6.RAG
{% endcolumn %}
{% endcolumns %}

LangChain recap: Chains, Tools, Memory\
LangGraph architecture and why it matters\
Installation, environment setup, and first LangGraph DAG


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://agenticai.kasinathanramesh.vip/section-2-basics-of-langchain-and-langgraph.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
