LangChain Integration
Langchain developers can leverage OctoAI LLM and embedding endpoints to easily access efficient compute across a wide selection of LLMs.
Introduction
LangChain provides a framework to easily build LLM-powered apps. Developers using LangChain can now utilize OctoAI LLMs and Embedding endpoints to access efficient, fast, and reliable compute.
Using OctoAI’s LLMs and LangChain
To use OctoAI LLMs with LangChain, first install the following dependencies in your environment:
Secondly, obtain an OctoAI API Token. Then paste your API token and run the code example below:
It should produce the following output:
Using OctoAI’s Embeddings and LangChain
Using OctoAI’s Embeddings endpoint is easy with LangChain.
We require the following dependencies:
And now you can run the code example below:
Learn with our demo apps
Get started today by following along with one of our demo apps: