LangChain Flashcards

🧠 LangChain Flashcards
🔗 What is LangChain?
LangChain is a framework to build applications powered by LLMs, enabling chaining of language models with tools, APIs, and memory.

🧱 What is a Chain?
A chain is a sequence of calls — LLMs, functions, or tools — assembled to perform complex tasks using LangChain.

📦 What is a LangChain Agent?
An agent uses LLM reasoning to choose actions/tools dynamically, based on context, to solve user queries.

💾 What is Memory in LangChain?
Memory allows persistence of state between calls, supporting conversational apps with context-aware interactions.

📚 What are Prompts in LangChain?
Prompts are input templates for LLMs. LangChain lets you build reusable, dynamic prompt templates.

🔍 What is Retrieval in LangChain?
Retrieval lets LLMs fetch relevant documents or data chunks using vector databases like FAISS, Pinecone, or ChromaDB.

🧠 What is an LLMChain?
LLMChain is a basic building block in LangChain combining a prompt template and an LLM to return responses.

⚒️ What tools can LangChain agents use?
LangChain agents can access tools like web search, calculator, SQL, Python, APIs, or even other chains.

📂 What are Document Loaders?
Document loaders are used to ingest unstructured data (PDFs, CSVs, etc.) into LangChain for analysis or retrieval.

⚙️ What is LangServe?
LangServe is a FastAPI wrapper that helps deploy LangChain apps as REST APIs quickly and securely.