Spaces:
Build error
Build error
Download pipelines/feature_engineering.py from SkazuHD/docker-test: direct link, hf CLI and curl.
- Browser
- Download file 725 Bytes
-
https://huggingface.co/spaces/SkazuHD/docker-test/resolve/main/pipelines/feature_engineering.py
- Command line
-
hf download hf://spaces/SkazuHD/docker-test/pipelines/feature_engineering.py
-
curl -L -o feature_engineering.py https://huggingface.co/spaces/SkazuHD/docker-test/resolve/main/pipelines/feature_engineering.py
725 Bytes
| from clearml import PipelineDecorator, Task | |
| from steps import feature_engineering as fe_steps | |
| def feature_engineering(author_full_names: list[str], wait_for: str | list[str] | None = None, **kwargs) -> list[str]: | |
| raw_documents = fe_steps.query_data_warehouse(author_full_names, after=wait_for) | |
| cleaned_documents = fe_steps.clean_documents(raw_documents) | |
| last_step_1 = fe_steps.load_to_vector_db(cleaned_documents) | |
| embedded_documents = fe_steps.chunk_and_embed(cleaned_documents) | |
| last_step_2 = fe_steps.load_to_vector_db(embedded_documents) | |
| return [last_step_1.invocation_id, last_step_2.invocation_id] | |