langchain/libs/cli/langchain_cli/integration_template
2024-09-15 18:26:50 +00:00
..
docs docs: api ref to new site somewheres (#25679) 2024-08-23 10:01:16 -07:00
integration_template multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
scripts multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
tests cli[patch]: ruff 0.5 (#23833) 2024-07-03 18:33:15 +00:00
.gitignore
LICENSE cli[patch]: copyright 2024 default (#17204) 2024-02-07 14:52:37 -08:00
Makefile make 2024-09-04 10:24:42 -07:00
pyproject.toml multiple: 0.3.0 not dev version (#26502) 2024-09-15 18:26:50 +00:00
README.md

package_name

This package contains the LangChain integration with ModuleName

Installation

pip install -U __package_name__

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

  • TODO: fill this out

Chat Models

Chat__ModuleName__ class exposes chat models from ModuleName.

from __module_name__ import Chat__ModuleName__

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

Embeddings

__ModuleName__Embeddings class exposes embeddings from ModuleName.

from __module_name__ import __ModuleName__Embeddings

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

LLMs

__ModuleName__LLM class exposes LLMs from ModuleName.

from __module_name__ import __ModuleName__LLM

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