Chapter 2: Hello World

In the previous chapter, we had a good understanding of what LangChain is. This chapter will start by exploring LangChain’s potential to build a few baseline applications using LLMs from different domains to understand its utilities. For now, we won’t be focussing on understanding the codes, but just exploring what LangChain can do. I am assuming most of the readers are well-versed in Python to get started.

2.1 Setting up LangChain

To get started with LangChain, you first need to have Python>=3.8.1 in your local system. If you already have it, you can run the below code in your system (jupyter notebook preferred).

 

!pip install langchain==0.0.343 openai==1.3.6

 

This installation should remain constant for any further ...

Get LangChain in your Pocket now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.