Skip to main content

Named entities

Find the people, organisations, places, dates, amounts and products a text names.

Command in the Generative AI toolkit · id ooa.genai/entities · 11 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
TextStringYesText, e.g. a contract clause or an email.
TypesListNoOnly these types (PERSON, ORGANIZATION, LOCATION, DATE, QUANTITY, EVENT, TITLE, COMMERCIAL_ITEM, OTHER); all when empty.
ProviderStringNoopenaiWho runs the model: OpenAI, Azure OpenAI, Anthropic, OpenAI-compatible (LiteLLM, vLLM, Ollama), Hugging Face (its router or your own TGI server), AWS SageMaker (a model on an Amazon SageMaker endpoint), AWS Bedrock or Google Vertex AI (Gemini).
ConnectionStringNoName of a Model Connection (provider, model and key managed in one place). Leave empty to set them on this action.
ModelStringNoModel name; the deployment name for Azure OpenAI; the endpoint name for AWS SageMaker; the model or inference profile id for AWS Bedrock.
API keyCredentialNoAPI key or access token from the vault (not needed for some self-hosted endpoints). For AWS Bedrock and AWS SageMaker: the AWS secret access key (or ACCESS_KEY_ID:SECRET). For Google Vertex AI: a service-account JSON key or an access token.
Endpoint addressStringNoEndpoint; required for Azure OpenAI, Vertex AI (https://REGION-aiplatform.googleapis.com/v1/projects/PROJECT/locations/REGION) and self-hosted models (for a TGI server, e.g. http://tgi-host:8080/v1).
Hide personal dataBooleanNofalseReplace emails, phone and card numbers, IBANs and similar before sending; restored in the answer. Off by default because names and numbers are what you are looking for.
AWS access key IDCredentialNoAWS Bedrock and AWS SageMaker only: AWS access key id from the vault (api_key then holds the secret access key).
AWS regionStringNoAWS Bedrock and AWS SageMaker only: AWS region, e.g. eu-west-1.
LanguageStringNoLanguage of the text, e.g. en or de; worked out from the text when empty.

Outputs​

OutputTypeWhat it is
entitiesTableColumns: text, type, score.
by_typeDictionaryType to the list of texts of that type.