Master LLMs with our FREE course in collaboration with Activeloop & Intel Disruptor Initiative. Join now!

Publication

Use LangChain to Extract a Dictionary from Text
Artificial Intelligence   Data Science   Latest   Machine Learning

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

Feedback ↓