G
GenAI Hub
โ›“
๐Ÿค– AI Agents & APIsโ˜… Featured

LangChain

by LangChain

The most popular framework for building LLM-powered applications. Provides chains, agents, RAG, memory, and integrations with hundreds of tools and data sources.

frameworkRAGagentsPythonJavaScript

Quick Start

  1. Install LangChain โ€” pip install langchain langchain-anthropic
  2. Set up a model โ€” from langchain_anthropic import ChatAnthropic; llm = ChatAnthropic(model="claude-sonnet-4-6")
  3. Create a simple chain โ€” chain = prompt | llm | output_parser; chain.invoke({"topic": "AI"})
  4. Build a RAG pipeline โ€” Load documents โ†’ Split โ†’ Embed โ†’ Store in vector DB โ†’ Retrieve โ†’ Generate.
Full quickstart guide

How-To Guides

2
Load documents with DocumentLoaders. Split with RecursiveCharacterTextSplitter. Embed with OpenAIEmbeddings. Store in Chroma, Pinecone, or FAISS. Retrieve and pass to an LLM with create_retrieval_chain.

Tool Info

Company
LangChain
Category
๐Ÿค– AI Agents & APIs
How-to Guides
2

Tags

frameworkRAGagentsPythonJavaScript