kioku-space

As a personal memory space.

Exploring LangChain's Quickstart (5) - Serve as a REST API (LangServe)

This series dives into how to use LangChain, based on the LangChain Quickstart guide.
In this post, we’ll explore how to deploy LangChain agents as a REST API using LangServe.

Recap of the Previous Post

In our last post, we created an agent that combines tools for answering LangChain-related queries with internet search capabilities.
Here’s a recap of the code we used:

Exploring LangChain's Quickstart (4) - Dynamically Select the Tools (Agent)

In this series, we explore the ‘Quickstart’ section of the LangChain documentation.

Previously, we developed chains that operated on predefined steps. In this article, we explore how the LLM chooses the right tools for processing based on user input, introducing the concept of an agent.

In a previous post, we built a retriever from LangChain’s documentation.
Let’s revisit that setup: