Skip to main content

An integration package connecting Moorcheh and LangChain

Project description

langchain-moorcheh

This package contains the LangChain integration with Moorcheh

Installation

pip install -U langchain-moorcheh

And you should configure credentials by setting the following environment variables:

  • TODO: fill this out

Chat Models

ChatMoorcheh class exposes chat models from Moorcheh.

from langchain_moorcheh import ChatMoorcheh

llm = ChatMoorcheh()
llm.invoke("Sing a ballad of LangChain.")

Embeddings

MoorchehEmbeddings class exposes embeddings from Moorcheh.

from langchain_moorcheh import MoorchehEmbeddings

embeddings = MoorchehEmbeddings()
embeddings.embed_query("What is the meaning of life?")

LLMs

MoorchehLLM class exposes LLMs from Moorcheh.

from langchain_moorcheh import MoorchehLLM

llm = MoorchehLLM()
llm.invoke("The meaning of life is")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_moorcheh-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_moorcheh-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file langchain_moorcheh-0.1.0.tar.gz.

File metadata

  • Download URL: langchain_moorcheh-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.1 Windows/11

File hashes

Hashes for langchain_moorcheh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5c4175e8c6aa06da9207b2da5e4202155f4ed458b953497d9c76c986f324b0c1
MD5 aff288af6fd8ddecf5f250b55057a9bc
BLAKE2b-256 8193a47484f41346c79b3347ad6db7bbb4d8061711d8a78cbf84b8029498b366

See more details on using hashes here.

File details

Details for the file langchain_moorcheh-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_moorcheh-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c73da7594dc940d16b5c37cfcf3f653fb8ace3f4989652683a119589de07bd8
MD5 0dae041129d85f24c43f0f29e6f76653
BLAKE2b-256 2312a189178b7b8930288edcade5f5519a06644f42bbb005ce658b64b3a3b8c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page