Skip to main content

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


Download files

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

Source Distribution

langchain_localai-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

langchain_localai-0.1.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for langchain_localai-0.1.2.tar.gz
Algorithm Hash digest
SHA256 102514601ab72f9f991980e7d9e5640f012480fd32d5e3b97894aff7a93c8fc7
MD5 0221109b1a942512d08711b9f192720d
BLAKE2b-256 bc7ab3e7d9470950f690773d549f987d4b00d61aaae9dfed9212052b7cbeb1d6

See more details on using hashes here.

File details

Details for the file langchain_localai-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_localai-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab3f57ca271cb9a8065239fa11e83aa52cdeca59d6baab45235f8c0e2ed5facd
MD5 4e90436d6b596534c746b047fae4f701
BLAKE2b-256 fb9a79bcc66c0b442e19c587d7b5cc5934cb64eb3d307e637206517dd99e4112

See more details on using hashes here.

Supported by

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