Skip to main content

An integration package connecting Asteroid and LangChain

Project description

langchain-asteroid

This package contains the LangChain integration with Asteroid

Installation

pip install -U langchain-asteroid

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

  • TODO: fill this out

Chat Models

ChatAsteroid class exposes chat models from Asteroid.

from langchain_asteroid import ChatAsteroid

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

Embeddings

AsteroidEmbeddings class exposes embeddings from Asteroid.

from langchain_asteroid import AsteroidEmbeddings

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

LLMs

AsteroidLLM class exposes LLMs from Asteroid.

from langchain_asteroid import AsteroidLLM

llm = AsteroidLLM()
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_asteroid-0.1.0.tar.gz (293.4 kB view details)

Uploaded Source

Built Distribution

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

langchain_asteroid-0.1.0-py3-none-any.whl (386.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_asteroid-0.1.0.tar.gz
  • Upload date:
  • Size: 293.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.14 Darwin/23.6.0

File hashes

Hashes for langchain_asteroid-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1ceeaa3add2d030fbdfce352430d4d13078c80bb517541d004a51f6366535ae9
MD5 4cceb6376e6ff2f48da357703012a165
BLAKE2b-256 bff26defaf3842c161161f63a83f0a2d6c25ef390fd6d8989270b389078a0469

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langchain_asteroid-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 386.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.14 Darwin/23.6.0

File hashes

Hashes for langchain_asteroid-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94aa6499aaac21ad1c26c74d9c7ff620e105cc0fe00842193a4cbbb0d092397b
MD5 a4a98b23dedbb4bdc197391e18bd6e66
BLAKE2b-256 2869cfc7e1e7d0b78c62e5734c44cc752f66a7791e281b67d61322cc9d32419e

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