hsg_rag_eea / src /database /strategies /strat_source.py
Pygmales's picture
Sync from GitHub dbb86cf4b41e84b3c8d61170a6dca9742c686757
9f2df60 verified
Raw
History Blame
421 Bytes
"""Property extraction strategy for property source."""
def run(file_name: str, file_content: str, chunk: str) -> str:
"""
Runs the property extraction strategy on processed chunk.
Args:
file_name (str): Name of the file from which the chunk was collected.
file_content (str): Entire text extracted from file.
chunk (str): Chunk collected from file.
Returns:
Extracted property.
"""
return file_name