Skip to content

techloset/genai-langchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to get started with langchain

curl -sSL https://install.python-poetry.org | python3 -

  poetry add langchain-core
  poetry add langchain-community
  poetry add langchain-openai

Core Langchain Concepts:

  • from langchain_core.messages import AIMessage,HumanMessage, ToolMessage,BaseMessage
  • from langchain_core.tools import tool
  • from langchain_core.prompts import ChatPromptTemplate
  • from langchain_core.runnables import Runnable, RunnableConfig
  • from langchain_core.utils.function_calling import convert_to_openai_function
  • from langgraph.prebuilt import ToolNode
  • from langgraph.graph import END, StateGraph, START
  • from langgraph.prebuilt import tools_condition
  • from langgraph.graph.message import AnyMessage, add_messages
  • from langgraph.graph import MessagesState, StateGraph, START
  • from langchain.agents import Tool
  • from langchain.utilities import GoogleSerperAPIWrapper
  • from langchain.chains import APIChain
  • from langchain.vectorstores import FAISS
  • from langchain.embeddings import OpenAIEmbeddings
  • from langchain.callbacks.base import AsyncCallbackHandler
  • from langchain.callbacks.manager import AsyncCallbackManager
  • from langchain.chains.conversation.memory import ConversationBufferMemory
  • from langchain.memory import ConversationBufferWindowMemory
  • from langchain.text_splitter import CharacterTextSplitter
  • from langchain.docstore.document import Document
  • from langchain.vectorstores import FAISS
  • from langchain.memory import ConversationBufferMemory

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages