Integrations
Friendli integrates with LangChain, LiteLLM, LlamaIndex, and MongoDB to streamline GenAI application deployment. LangChain and LlamaIndex enable tool calling AI agents and Retrieval-Augmented Generation (RAG), while MongoDB provides memory via vector databases, and LiteLLM boosts performance through load balancing.
Friendli integrates with LangChain, LiteLLM, LlamaIndex, and MongoDB to streamline the deployment of compound GenAI applications. The integration of LangChain and LlamaIndex facilitates tool calling AI agents or Retrieval-Augmented Generation (RAG). MongoDB supports these agentic systems by providing memory with vector databases, while LiteLLM enhances performance through load balancing and evaluation.
Get a quick overview of Friendli Serverless Endpoints’ integrations and learn more through the linked resources.
LangChain
LangChain is a framework for developing applications powered by large language models (LLMs). Utilize Friendli Serverless Endpoints for LLM inferencing in LangChain by preparing a Friendli Token.
To install the required packages, run:
Here’s a streaming chat sample code to get started with LangChain and FriendliAI:
Output:
Resources
- FriendliAI Blog Post on Building RAG Chatbots with Friendli, MongoDB Atlas, and LangChain
- FriendliAI Blog Post on Example RAG Application with Friendli and LangChain
- FriendliAI Blog Post on LangChain Integration with Friendli Dedicated Endpoints
- LangChain’s Documentation on Friendli
MongoDB
MongoDB Atlas is a developer data platform offering vector stores and searches for compound GenAI applications, compatible through both LangChain and LlamaIndex. Utilize Friendli Serverless Endpoints for LLM inferencing in MongoDB by preparing a Friendli Token.
To install the required packages, run:
Here’s a RAG sample code to get started with MongoDB and FriendliAI using LangChain:
Resources
- FriendliAI Blog Post on Building RAG Chatbots with Friendli, MongoDB Atlas, and LangChain
- FriendliAI Blog Post on RAG with FriendliAI and MongoDB
- MongoDB’s Partner Ecosystem Page on FriendliAI
LlamaIndex
LlamaIndex is a data framework designed to connect LLMs to custom data sources. Utilize Friendli Serverless Endpoints for LLM inferencing in LlamaIndex by preparing a Friendli Token. Additionally, an OpenAI API key is required to access the OpenAI embedding API.
To install the required packages, run:
Here’s a RAG streaming chat sample code to get started with LlamaIndex and FriendliAI:
Resources
- FriendliAI Blog Post on Building RAG Applications with Friendli and LlamaIndex
- Google Colab Notebook on Two-Stage Retrieval with LlamaIndex Friendli Integration
- LlamaIndex’s Documentation on Friendli
LiteLLM
LiteLLM is a versatile platform offering access to 100+ LLMs in the OpenAI API format. Utilize Friendli Serverless Endpoints for LLM inferencing in LiteLLM by preparing a Friendli Token.
To install the required package, run:
Here’s a streaming chat sample code to get started with LiteLLM and FriendliAI:
Output:
Resources
Was this page helpful?