mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-15 07:00:38 +00:00
Extraction with OpenAI Function Calling
This template shows how to do extraction of structured data from unstructured data, using OpenAI function calling.
Specify the information you want to extract in chain.py
By default, it will extract the title and author of papers.
LLM
This template will use OpenAI by default.
Be sure that OPENAI_API_KEY is set in your environment.
Environment variables
You need to define the following environment variable
OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>