Extract Entities from Text
A Semantic Kernel prompt template that extracts entities related to a specified topic from input text and returns both the entities and source text.
Why it matters
Extract key entities from unstructured text, grounded in a specific topic, and return them alongside their source.
Outcomes
What it gets done
Identify and extract entities relevant to a given topic.
Return extracted entities with their original text context.
Structure entity extraction based on provided examples.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/sk-groundingplugin-extractentities | bash Overview
Grounding Plugin - Extract Entities
This Semantic Kernel prompt template extracts entities related to a specified topic from supplied input text. It accepts three input variables (input, topic, example_entities) and returns both the extracted entities and the original source text, enabling structured information retrieval while maintaining traceability. Use this template when you need to identify and extract specific types of entities from unstructured text based on a defined topic, especially when maintaining source attribution is important. It fits scenarios like processing documents or conversations where domain-specific entity extraction is required.
What it does
This Grounding Plugin prompt template extracts entities related to a user-specified topic from supplied input text. It returns both the extracted entities and the original source text, enabling structured information retrieval from unstructured content.
When to use - and when NOT to
Use this template when you need to identify and extract specific types of entities (people, places, products, concepts) from text based on a defined topic, especially when you want to maintain traceability to the source material. It is particularly useful when processing documents, articles, or conversations where you need to pull out domain-specific entities while preserving the original context.
Do not use this when you need complex relationship mapping between entities or when the source text is already structured data. Avoid using it when you need real-time streaming extraction, as it processes complete input text.
Inputs and outputs
The template requires three input variables:
input: The text from which entities will be extractedtopic: The specified topic that defines what types of entities to look forexample_entities: Examples that guide the extraction process
The template returns the extracted entities along with the source text, providing both the structured output and the original context.
Who it's for
This prompt template is designed for developers and data engineers working with the Semantic Kernel framework who need to implement entity extraction workflows. It serves teams building knowledge management systems, content analysis pipelines, or applications that require structured data extraction from unstructured text while maintaining source attribution.
Source README
Extract entities related to a specified topic from the supplied input text. Returns the entities and the source text
Input variables: input, topic, example_entities
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.