From the course: Level up LLM applications development with LangChain and OpenAI

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Introducing LangServe: Installation and setup

Introducing LangServe: Installation and setup

- [Instructor] LangServe is a library provided by LangChain that helps developers deploy runnables and chains as a RESTful API. And so LangServe comes integrated with Fast API, and it uses Pydantic for data validation. And so it is packed with many features. So for example, you can, as soon as you deploy a runnable, you're going to have access to a built-in API documentation built with JSON, Schema and Swagger, and you're going to see that this is very useful and convenient. You're going to be able to interact with the endpoints directly from the browser by using a graphical user interface. So that's going to be made available with Swagger. So you're going to have access to these endpoints automatically with invoke, batch and stream. And so for the installation, so we simply need to run P install, and then LangServe, like this, for both client and server. And right below, we're going to find an example for basic application. Right here. And so, in this order, what we're going to do is…

Contents