Use LangChain to Extract a Dictionary from Text
Last Updated on August 20, 2023 by Editorial Team
Author(s): Eugenia Anello
Originally published on Towards AI.
A deep-dive tutorial that exploits LangChainβs Output parser to store the text of a property listing as key-value pairs
This member-only story is on us. Upgrade to access all of Medium.
Photo by Sergey Sokolov on Unsplash
When you search property listings on websites like Facebookβs groups, itβs time-consuming to scroll and read them.
Wouldnβt it be more efficient to map the information of the listing into a dictionary? For example, it can be useful to collect different listings and compare prices and characteristics, allowing one to understand if taking that apartment is a good deal or not.
In this tutorial, we are going to extract a dictionary from the text of the listings using LangChainβs Output Parser and ChatGPT. Letβs get started!
We… Read the full blog for free on Medium.
Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.
Published via Towards AI