Skip to main content

Module extraction

Module extraction 

Source
Expand description

This module provides functionality for extracting structured data from text using LLM APIs. It handles the communication with OpenAI’s API, formatting requests and parsing responses according to a specified data model schema.

Functions§

query_openai
Queries the OpenAI API with a given prompt and pre-prompt, using a specified data model and root.