I have an app where I query private data that I fed into Pinecone. I get reasonable results. However, I am trying to do Pinecone filtering as well. For that I put my prompt through GPT-4 Completion API along with the following Context:
*Named Entity is defined as one or more of the following: *
*Name of a person, an organization, such as: a company, a corporate entity, a government institution, a military unit. * Name of a geographic location such as country, city, region, specific address, mountain, river, incident locations. Name of a document, legal concepts or terms such as Plaintiff, Defendant, latin terms like Pro Bono, specific laws and legal acts or procedures, legal doctrines or theories, case identifiers, names of operations or incidents related to cases, document titles and types, clause names and identifiers, legal entities such as estate or trust or another entities like events, dates, times, percentages, monetary values that can be essential in specific use-cases. For the following Context identify and list Named Entities:
Obviously that the user prompt follows the above. It usually has the names of people, legal terms, and some of other stuff that should be identified as Named Entities. However, the API return nothing, zero!.
I am aware that GPT-4 is not designed for this purpose but getting NOTHING?!
Anybody has any advice on that? The purpose of the extracting of Named Entities is to be able to filter the data in case the Pinecone vector DB has more than one document with similar content, etc.
{
name: "extract_named_entities",
description: "Extract all named entities from the user's given text.",
parameters: {
type: "object",
properties: {
entities: {
type: "array",
items: {
type: "string",
description: "Name of a person, an organization, such as: a company, a corporate entity, a government institution, a military unit, geographic location such as country, city, region, specific address, mountain, river, incident locations, name of a document, legal concepts or terms such as Plaintiff, Defendant, latin terms like Pro Bono, specific laws and legal acts or procedures, legal doctrines or theories, case identifiers, names of operations or incidents related to cases, document titles and types, clause names and identifiers, legal entities such as estate or trust or another entities like events, dates, times, percentages, monetary values that can be essential in specific use-cases"
}
}
}
},
required: ["entities"]
}
}