Skip to content

Add reference doc for databricks.py, avatar.py and simba_utils.py#7

Open
banana-bison wants to merge 2 commits into
swe-productivity:mainfrom
banana-bison:refdoc
Open

Add reference doc for databricks.py, avatar.py and simba_utils.py#7
banana-bison wants to merge 2 commits into
swe-productivity:mainfrom
banana-bison:refdoc

Conversation

@banana-bison
Copy link
Copy Markdown

Fixes: #3

Signed-off-by: banana-bison <bananabison@gmail.com>
):
"""
Args:
model: Name of the model as stored in the databricks store
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what is databricks store?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

My understanding is that databricks provides a store for ML models and dspy client for databricks provides functions to manage/use them through dspy's paradigm. The store is question is the databricks feature store https://docs.databricks.com/aws/en/machine-learning/feature-store/. Is my understanding correct?

Comment thread dspy/clients/databricks.py Outdated
Comment thread dspy/clients/databricks.py Outdated
Comment thread dspy/clients/databricks.py Outdated
Comment thread dspy/clients/databricks.py Outdated
Comment thread dspy/predict/avatar/avatar.py
Comment thread dspy/teleprompt/simba_utils.py Outdated
@@ -32,6 +34,21 @@ def prepare_models_for_resampling(program: dspy.Module, n: int, teacher_settings
return models

def wrap_program(program: dspy.Module, metric: Callable):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can we also add type hint?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

this function (wrap_program), already has type hints. Did you mean the function below it: wrapped_program?

Comment thread dspy/teleprompt/simba_utils.py Outdated
Comment thread dspy/teleprompt/simba_utils.py Outdated
Comment thread dspy/teleprompt/simba_utils.py Outdated
Comment thread dspy/teleprompt/simba_utils.py Outdated
Signed-off-by: banana-bison <bananabison@gmail.com>
@banana-bison
Copy link
Copy Markdown
Author

@TomeHirata I've address all the review comments

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.

[Feature] Add reference documentation

2 participants