Skip to content

Commit

Permalink
Update HF example to correct founding city (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrl authored Jan 28, 2025
1 parent cbbf088 commit 37c64d5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class LLMMetadataExtractor:
docs = [
Document(content="deepset was founded in 2018 in Berlin, and is known for its Haystack framework"),
Document(content="Hugging Face is a company founded in Paris, France and is known for its Transformers library")
Document(content="Hugging Face is a company that was founded in New York, USA and is known for its Transformers library")
]
extractor = LLMMetadataExtractor(
Expand All @@ -143,10 +143,10 @@ class LLMMetadataExtractor:
Document(id=.., content: 'deepset was founded in 2018 in Berlin, and is known for its Haystack framework',
meta: {'entities': [{'entity': 'deepset', 'entity_type': 'company'}, {'entity': 'Berlin', 'entity_type': 'city'},
{'entity': 'Haystack', 'entity_type': 'product'}]}),
Document(id=.., content: 'Hugging Face is a company founded in Paris, France and is known for its Transformers library',
Document(id=.., content: 'Hugging Face is a company that was founded in New York, USA and is known for its Transformers library',
meta: {'entities': [
{'entity': 'Hugging Face', 'entity_type': 'company'}, {'entity': 'Paris', 'entity_type': 'city'},
{'entity': 'France', 'entity_type': 'country'}, {'entity': 'Transformers', 'entity_type': 'product'}
{'entity': 'Hugging Face', 'entity_type': 'company'}, {'entity': 'New York', 'entity_type': 'city'},
{'entity': 'USA', 'entity_type': 'country'}, {'entity': 'Transformers', 'entity_type': 'product'}
]})
]
'failed_documents': []
Expand Down

0 comments on commit 37c64d5

Please sign in to comment.