Welcome to the LangChain Completed Tutorial! In this comprehensive tutorial, we will explore and delve into the various components and concepts that make up LangChain, a powerful language processing framework. LangChain empowers developers and researchers to harness the capabilities of large language models(LLMs), while extending its functionality with a range of tools designed to streamline and enhance language-related tasks.
- OpenAI Overview
openai.Completion.createopenai.ChatCompletion
- LangChain Overview
OpenAI
- Schema
ChatOpenAIDocument
- Models
OpenAIChatOpenAIOpenAIEmbeddings
- Prompts
- Prompt Templates
PromptTemplate
- Example Selectors
SemanticSimilarityExampleSelectorFewShotPromptTemplate
- Output Parsers
StructuredOutputParserResponseSchema
- Indexes
FAISS
- Document Loaders
TextLoaderCSVLoaderUnstructuredCSVLoaderPyPDFLoaderDirectoryLoaderHNLoaderUnstructuredHTMLLoaderJSONLoader
- Text Splitters
RecursiveCharacterTextSplitter
- Retrievers
get_relevant_documents
- Memory
ChatMessageHistoryConversationChain
- Chains
LLMChainSimpleSequentialChainload_summarize_chain
- Agents
load_toolsinitialize_agent
Note: You need OPEN_AI_KEY to run the notebook.
Ref:
- https://docs.langchain.com/docs/
- https://github.com/langchain-ai/langchain/tree/master/libs/langchain
- https://github.com/gkamradt/langchain-tutorials/blob/main/LangChain%20Cookbook%20Part%201%20-%20Fundamentals.ipynb
langchain API Reference
LangChain integration hub