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")
Metadata
Release files for langchain-asteroid 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_asteroid-0.1.0.tar.gz | 293.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_asteroid-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 680.0 kB
Release files / langchain_asteroid-0.1.0.tar.gz
| Download URL | langchain_asteroid-0.1.0.tar.gz |
|---|---|
| Size | 293.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ceeaa3add2d030fbdfce352430d4d13078c80bb517541d004a51f6366535ae9
|
|
BLAKE2b-256 checksum How to use checksums |
bff26defaf3842c161161f63a83f0a2d6c25ef390fd6d8989270b389078a0469
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.10.14 Darwin/23.6.0
|
Release files / langchain_asteroid-0.1.0-py3-none-any.whl
| Download URL | langchain_asteroid-0.1.0-py3-none-any.whl |
|---|---|
| Size | 386.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94aa6499aaac21ad1c26c74d9c7ff620e105cc0fe00842193a4cbbb0d092397b
|
|
BLAKE2b-256 checksum How to use checksums |
2869cfc7e1e7d0b78c62e5734c44cc752f66a7791e281b67d61322cc9d32419e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.10.14 Darwin/23.6.0
|