Skip to content

Instantly share code, notes, and snippets.

@ihower
Created May 28, 2023 09:40
Show Gist options
  • Save ihower/26a480a923d00c7ba2896d197bb3423e to your computer and use it in GitHub Desktop.
Save ihower/26a480a923d00c7ba2896d197bb3423e to your computer and use it in GitHub Desktop.
require 'pycall'
module LangChain
ChatModels = PyCall.import_module("langchain.chat_models")
LLMs = PyCall.import_module("langchain.llms")
Embeddings = PyCall.import_module("langchain.embeddings")
DocumentLoaders = PyCall.import_module("langchain.document_loaders")
TextSplitter = PyCall.import_module("langchain.text_splitter")
VectorStores = PyCall.import_module("langchain.vectorstores")
Chains = PyCall.import_module("langchain.chains")
Agents = PyCall.import_module("langchain.agents")
Schema = PyCall.import_module("langchain.schema")
Prompts = PyCall.import_module("langchain.prompts")
Memory = PyCall.import_module("langchain.memory")
Callbacks = PyCall.import_module("langchain.callbacks")
Retrievers = PyCall.import_module("langchain.retrievers")
Tools = PyCall.import_module("langchain.tools")
Utilities = PyCall.import_module("langchain.utilities")
Indexes = PyCall.import_module("langchain.indexes")
Docstore = PyCall.import_module("langchain.docstore")
OutputParsers = PyCall.import_module("langchain.output_parsers")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment