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

clean html extractor #237

Merged
merged 6 commits into from
Jan 11, 2024
Merged

clean html extractor #237

merged 6 commits into from
Jan 11, 2024

Conversation

pankajastro
Copy link
Collaborator

@pankajastro pankajastro commented Dec 28, 2023

closes: #164

Currently, We have some duplicate code in the HTML extractor, this PR aims to remove the duplicate code and reuse it from html_utils.

Copy link

cloudflare-workers-and-pages bot commented Dec 28, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: f0967a6
Status: ✅  Deploy successful!
Preview URL: https://2bdc6694.ask-astro.pages.dev
Branch Preview URL: https://reuse-html.ask-astro.pages.dev

View logs

@pankajastro pankajastro changed the title [WIP] clean html extractor clean html extractor Dec 29, 2023
@pankajastro pankajastro marked this pull request as ready for review December 29, 2023 10:25
@pankajastro
Copy link
Collaborator Author

currently, retry for HTTP call is missing here as we have in airflow/include/tasks/extract/utils/html_helpers.py. I was thing to do it in separate PR

airflow/dags/ingestion/ask-astro-load-airflow-docs.py Outdated Show resolved Hide resolved
airflow/dags/ingestion/ask-astro-load-airflow-docs.py Outdated Show resolved Hide resolved
airflow/include/tasks/extract/utils/html_utils.py Outdated Show resolved Hide resolved
airflow/include/tasks/split.py Outdated Show resolved Hide resolved
airflow/include/tasks/split.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a few minor suggestion, but I think we're almost good to merge it

airflow/dags/ingestion/ask-astro-load-airflow-docs.py Outdated Show resolved Hide resolved
airflow/include/tasks/extract/utils/html_utils.py Outdated Show resolved Hide resolved
airflow/include/tasks/extract/utils/html_utils.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@sunank200 sunank200 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pankajastro Can you run this again with new weaviate provider by deleting the weaviate index and reingesting, please?

The code in main branch uses latest weaviate provider. You might want to rebase and re-run the DAG after deleting the weaviate index. First you need to run bulk ingest then you need to run other DAGs.

airflow/dags/ingestion/ask-astro-load-airflow-docs.py Outdated Show resolved Hide resolved
airflow/include/tasks/extract/airflow_docs.py Show resolved Hide resolved
airflow/include/tasks/split.py Outdated Show resolved Hide resolved
airflow/include/tasks/extract/utils/html_utils.py Outdated Show resolved Hide resolved
airflow/include/tasks/extract/utils/html_utils.py Outdated Show resolved Hide resolved
@pankajastro pankajastro force-pushed the reuse_html branch 2 times, most recently from 203a61d to 8c65471 Compare January 10, 2024 08:49
@vatsrahul1001
Copy link
Collaborator

@pankajastro tested this only observation was that source count has increased, however, as discussed with @sunank200 this was related to PR, we should be ok to close this

@pankajastro pankajastro merged commit 28f1de8 into main Jan 11, 2024
7 checks passed
@pankajastro pankajastro deleted the reuse_html branch January 11, 2024 10:06
sunank200 pushed a commit that referenced this pull request Jan 16, 2024
closes: #164

Currently, We have some duplicate code in the HTML extractor, this PR
aims to remove the duplicate code and reuse it from html_utils.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to consolidate to a single HTML ingest
4 participants