Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to document groups post ingestion #277

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
4 changes: 2 additions & 2 deletions ai_ta_backend/beam/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _ingest_single(ingest_method: Callable, s3_path, *args, **kwargs):
else:
# No supported ingest... Fallback to attempting utf-8 decoding, otherwise fail.
try:
self._ingest_single_txt(s3_path, course_name)
self._ingest_single_txt(s3_path, course_name, **kwargs)
success_status['success_ingest'] = s3_path
print(f"No ingest methods -- Falling back to UTF-8 INGEST... s3_path = {s3_path}")
except Exception as e:
Expand Down Expand Up @@ -1462,4 +1462,4 @@ def delete_data(self, course_name: str, s3_path: str, source_url: str):
if __name__ == "__main__":
raise NotImplementedError("This file is not meant to be run directly")
text = "Testing 123"
# ingest(text=text)
# ingest(text=text)
Loading