-
Notifications
You must be signed in to change notification settings - Fork 50
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
Create TaskFlow API to use WeaviateHook and use taskflow API for ask-astro-load.py #132
Conversation
Deploying with Cloudflare Pages
|
fa7a06d
to
5fcfb18
Compare
airflow/include/airflow_provider_weaviate-0.0.1-py3-none-any.whl
Outdated
Show resolved
Hide resolved
281639d
to
090cced
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some logic errors but mostly I'm concerned about readablity and generalizability. For the sake of the reference implementation we want to be very clear about DAG/task code and what should (eventually) go into the hook.
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
57af49b
to
64d97f0
Compare
@mpgreg I have fixed most of your comments. Please check. Also just to be clear. This hook is not a drop-in replacement for LLM providers. It requires work contextual change to be added for LLM provider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are only some nitpicks from my side. other parts look good to me
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
d15958d
to
c036d67
Compare
- Use `AskAstroWeaviateHook` as the taskflow API for [ask-astro-load-slack.py](https://github.com/astronomer/ask-astro/blob/main/airflow/dags/ingestion/ask-astro-load-slack.py) closes: #140
- Use `AskAstroWeaviateHook` as the taskflow API for [ask-astro-load-stackoverflow.py](https://github.com/astronomer/ask-astro/blob/main/airflow/dags/ingestion/ask-astro-load-stackoverflow.py) closes: #139
- Use `AskAstroWeaviateHook` as the taskflow API for [ask-astro-load-registry.py](https://github.com/astronomer/ask-astro/blob/main/airflow/dags/ingestion/ask-astro-load-registry.py) closes: #138
- Use `AskAstroWeaviateHook` as the taskflow API for [ask-astro-load-github.py](https://github.com/astronomer/ask-astro/blob/main/airflow/dags/ingestion/ask-astro-load-github.py) closes: #137
- Use `AskAstroWeaviateHook` as the taskflow API for [ask-astro-load-blogs.py](https://github.com/astronomer/ask-astro/blob/main/airflow/dags/ingestion/ask-astro-load-blogs.py) closes: #135
- Implement AskAstroWeaviateHook which inherits from WeavaiteHook from OSS. - Use AskAstroWeaviateHook as the taskflow API for [ask-astro-load-airflow-docs.py](https://github.com/astronomer/ask-astro/blob/45ce6543d044a977d97e9314e443f629604e84a9/airflow/dags/ingestion/ask-astro-load-airflow-docs.py) closes: #141 Note: Merge this PR before merging [132](#132)
c036d67
to
63bcb55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @sunank200. Just a couple of small suggestions.
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
airflow/include/tasks/extract/utils/weaviate/ask_astro_weaviate_hook.py
Outdated
Show resolved
Hide resolved
f9f1b2a
to
96cc7d7
Compare
96cc7d7
to
93ea3d8
Compare
AskAstroWeaviateHook
which inherits from OSSWeaviateHook
.get_schema
,check_schema
,create_schema
,handle_upsert_rollback
andingest_data
ask-astro-load.py
.closes: #134