NotebookLM / ingestion_engine /text_extractor.py
internomega-terrablue
ingestion changes
9f911b3
raw
history blame contribute delete
211 Bytes
"""Plain text file extraction."""
def extract(file_path: str) -> str:
"""Read a plain text file as UTF-8."""
with open(file_path, "r", encoding="utf-8", errors="replace") as f:
return f.read()