Skip to content

Instantly share code, notes, and snippets.

@CodeWithOz
Last active September 2, 2025 13:18
Show Gist options
  • Select an option

  • Save CodeWithOz/0f455f11b593b2db32d575f6127635bc to your computer and use it in GitHub Desktop.

Select an option

Save CodeWithOz/0f455f11b593b2db32d575f6127635bc to your computer and use it in GitHub Desktop.
Logs from running the demo enrichment agent.
Invoking agent extractor LLM response: {
"named_entities": [
{
"entity_name": "Kristoffer Nolen",
"entity_context": "Hollywood director known for complex films"
},
{
"entity_name": "Inceptshun",
"entity_context": "sci-fi thriller film by Kristoffer Nolen"
},
{
"entity_name": "Dunkrik",
"entity_context": "another film by Kristoffer Nolen"
}
]
}
Performing web search to verify entity: Kristoffer Nolen
Performing web search to verify entity: Inceptshun
Performing web search to verify entity: Dunkrik
Found 3 results for entity: Dunkrik
Getting canonical name from search results for entity 'Dunkrik'
Found 3 results for entity: Kristoffer Nolen
Getting canonical name from search results for entity 'Kristoffer Nolen'
Found 3 results for entity: Inceptshun
Getting canonical name from search results for entity 'Inceptshun'
LLM verified entity 'Inceptshun' as 'Inception'
LLM verified entity 'Dunkrik' as 'Dunkirk'
LLM verified entity 'Kristoffer Nolen' as 'Christopher Nolan'
Agent response: {
"transcript_text": "Hollywood director Kristoffer Nolen has announced his next big project, rumored to be another complex sci-fi thriller. Fans of Nolen\u2019s earlier work are eager to see if this film will rival the success of \u2018Inceptshun\u2019 or \u2018Dunkrik.\u2019",
"extracted_entities": {
"named_entities": [
{
"entity_name": "Kristoffer Nolen",
"entity_context": "Hollywood director known for complex films"
},
{
"entity_name": "Inceptshun",
"entity_context": "sci-fi thriller film by Kristoffer Nolen"
},
{
"entity_name": "Dunkrik",
"entity_context": "another film by Kristoffer Nolen"
}
]
},
"verified_entities": [
{
"canonical_name": "Christopher Nolan",
"extracted_name": "Kristoffer Nolen"
},
{
"canonical_name": "Inception",
"extracted_name": "Inceptshun"
},
{
"canonical_name": "Dunkirk",
"extracted_name": "Dunkrik"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment