This gist shows you how to use langchain to reformat text input data (representing specimens) into a structured output defined by a python class. For ease of use, it uses the groq API, so that no local installation of an LLM is required.
You'll need python and to install the langchain-groq
package, which is specified in requirements.txt
You'll also need to sign up for a groq API key at https://console.groq.com/keys, and you'll need to store this key in an environment variable (GROQ_API_KEY) on your local system.