Skip to content

Instantly share code, notes, and snippets.

View CodeWithOz's full-sized avatar

Uche Ozoemena CodeWithOz

  • Abuja, Nigeria
View GitHub Profile
@CodeWithOz
CodeWithOz / demo-enrichment-agent.py
Last active August 26, 2025 22:34
Agent for cleaning up named entities in YouTube video transcripts.
...
class TextReplacement(BaseModel):
replaced_text: str = Field(description="The updated text after replacing entities.")
...
class DemoEnrichmentAgent:
...
entity_replacer_llm: Runnable
@CodeWithOz
CodeWithOz / demo-enrichment-agent-logs.txt
Last active September 2, 2025 13:18
Logs from running the demo enrichment agent.
...
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 sci-fi thrillers"