An integration package connecting LocalAI and LangChain
Project description
langchain-localai
This package contains the LangChain integration with LocalAI
Installation
pip install -U langchain-localai
Embeddings
LocalAIEmbeddings
class exposes embeddings from LocalAI.
from libs.localai.langchain_localai import LocalAIEmbeddings
embeddings = LocalAIEmbeddings(
openai_api_base="http://localhost:8080",
model="embedding-model-name")
embeddings.embed_query("What is the meaning of life?")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file langchain_localai-0.1.2.tar.gz
.
File metadata
- Download URL: langchain_localai-0.1.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
102514601ab72f9f991980e7d9e5640f012480fd32d5e3b97894aff7a93c8fc7
|
|
MD5 |
0221109b1a942512d08711b9f192720d
|
|
BLAKE2b-256 |
bc7ab3e7d9470950f690773d549f987d4b00d61aaae9dfed9212052b7cbeb1d6
|
File details
Details for the file langchain_localai-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: langchain_localai-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ab3f57ca271cb9a8065239fa11e83aa52cdeca59d6baab45235f8c0e2ed5facd
|
|
MD5 |
4e90436d6b596534c746b047fae4f701
|
|
BLAKE2b-256 |
fb9a79bcc66c0b442e19c587d7b5cc5934cb64eb3d307e637206517dd99e4112
|