-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more unit tests for data pipeline utils in agent example (#29)
* WIP Signed-off-by: Sid Murching <[email protected]> * WIP Signed-off-by: Sid Murching <[email protected]> * Remove lint workflow Signed-off-by: Sid Murching <[email protected]> * Add comments to utils Signed-off-by: Sid Murching <[email protected]> * Fix test Signed-off-by: Sid Murching <[email protected]> * Delete autogenerated comments Signed-off-by: Sid Murching <[email protected]> * Switch to .show() which is defined locally Signed-off-by: Sid Murching <[email protected]> * Add more tests for file loading & parsing logic in data pipeline Signed-off-by: Sid Murching <[email protected]> * Add more tests for file parsing Signed-off-by: Sid Murching <[email protected]> * Update agent_app_sample_code/tests/test_file_loading.py * Add developer README Signed-off-by: Sid Murching <[email protected]> --------- Signed-off-by: Sid Murching <[email protected]>
- Loading branch information
Showing
3 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
# Databricks Mosaic Generative AI Cookbook | ||
|
||
To start working on this book: | ||
## Dev env setup | ||
- clone the repo; `cd cookbook` | ||
- use your preferred approach to starting a new python environment | ||
- in that environment, `pip install -r dev/dev_requirements.txt` | ||
|
||
## Updating website content | ||
To test updates to site content at ai-cookbook.io | ||
- build and preview the site with `jupyter-book build --all genai_cookbook` | ||
|
||
The homepage is at `genai_cookbook/index.md` | ||
|
||
The content pages are in `genai_cookbook/nbs/` | ||
|
||
Jupyter book is fairly flexible and offers a lot of different options for formatting, cross-referencing, adding formatted callouts, etc. Read more at the [Jupyter Book docs](https://jupyterbook.org/en/stable/intro.html). | ||
|
||
## Updating code | ||
Use the `databricks sync` CLI command ([docs](https://docs.databricks.com/en/dev-tools/cli/sync-commands.html)) to sync the code in this repo to | ||
your Databricks workspace. You can then iterate on code in your IDE and test changes in | ||
Databricks. Be sure to add unit tests (as of the time of writing, tests are under `agent_app_sample_code/tests`). | ||
You can run unit tests via `pytest` |