TogetherEmbeddings
This will help you get started with Together embedding models using LangChain. For detailed documentation on TogetherEmbeddings
features and configuration options, please refer to the API reference.
Overviewโ
Integration detailsโ
Provider | Package |
---|---|
Together | langchain-together |
Setupโ
To access Together embedding models you'll need to create a/an Together account, get an API key, and install the langchain-together
integration package.
Credentialsโ
Head to https://api.together.xyz/ to sign up to Together and generate an API key. Once you've done this set the TOGETHER_API_KEY environment variable:
import getpass
import os
if not os.getenv("TOGETHER_API_KEY"):
os.environ["TOGETHER_API_KEY"] = getpass.getpass("Enter your Together API key: ")
If you want to get automated tracing of your model calls you can also set your LangSmith API key by uncommenting below:
# os.environ["LANGCHAIN_TRACING_V2"] = "true"
# os.environ["LANGCHAIN_API_KEY"] = getpass.getpass("Enter your LangSmith API key: ")