You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/cli/langchain_cli/integration_template
Isaac Francisco 75e966a2fa
docs, cli[patch]: document loaders doc template (#22862)
From: https://github.com/langchain-ai/langchain/pull/22290

---------

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
3 months ago
..
docs docs, cli[patch]: document loaders doc template (#22862) 3 months ago
integration_template docs, cli[patch]: document loaders doc template (#22862) 3 months ago
scripts cli[patch]: integration template nits (#14691) 7 months ago
tests cli[patch]: add embedding to integration template (#14881) 9 months ago
.gitignore cli[patch]: integration template (#14571) 9 months ago
LICENSE cli[patch]: copyright 2024 default (#17204) 8 months ago
Makefile couchbase: Add the initial version of Couchbase partner package (#22087) 4 months ago
README.md cli[patch], google-vertexai[patch]: readme template (#16470) 8 months ago
pyproject.toml cli: model name substitution fix, release 0.0.23 (#22089) 4 months ago

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")