Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prompt-Engineering

generate prompts for LLMs to extract relevant entities from job descriptions and also to classify web pages given only a few examples of human scores.

Entity Extraction with Generative Models

This notebook demonstrates how to use Cohere's generative models to extract Entities from text. This demonstrates Named Entity Recognition (NER) of entities which are harder to isolate using other NLP methods (and where pre-training provides the model with some context on these entities). This also demonstrates the broader usecase of sturctured generation based on providing multiple examples in the prompt. image

Preparing examples for the prompt

In our prompt, we'll present the model with examples for the type of output we're after. We basically get a set of data, and label them ourselves. image

Creating the extraction prompt

We'll create a prompt that demonstrates the task to the model. The prompt contains the examples above, and then presents the input text and asks the model to extract the movie name. image

About

generate prompts for LLMs to extract relevant entities from job descriptions and also to classify web pages given only a few examples of human scores.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages