langchain/libs/partners/upstage
ccurme 481d3855dc
patch: remove usage of llm, chat model __call__ (#20788)
- `llm(prompt)` -> `llm.invoke(prompt)`
- `llm(prompt=prompt` -> `llm.invoke(prompt)` (same with `messages=`)
- `llm(prompt, callbacks=callbacks)` -> `llm.invoke(prompt,
config={"callbacks": callbacks})`
- `llm(prompt, **kwargs)` -> `llm.invoke(prompt, **kwargs)`
2024-04-24 19:39:23 -04:00
..
langchain_upstage upstage: Add Upstage partner package LA and GC (#20651) 2024-04-24 15:17:20 -07:00
scripts
tests patch: remove usage of llm, chat model __call__ (#20788) 2024-04-24 19:39:23 -04:00
.gitignore
LICENSE
Makefile
poetry.lock upstage: release 0.1.1 (#20864) 2024-04-24 15:18:30 -07:00
pyproject.toml upstage: release 0.1.1 (#20864) 2024-04-24 15:18:30 -07:00
README.md

langchain-upstage

This package contains the LangChain integrations for Upstage through their APIs.

Installation and Setup

  • Install the LangChain partner package
pip install -U langchain-upstage
  • Get an Upstage api key from Upstage Console and set it as an environment variable (UPSTAGE_API_KEY)

Chat Models

This package contains the ChatUpstage class, which is the recommended way to interface with Upstage models.

See a usage example

Embeddings

See a usage example

Use solar-1-mini-embedding as the default model for embeddings. Do not add suffixes such as -query or -passage to the model name. UpstageEmbeddings will automatically add the suffixes based on the method called.