Add bricefotzo/dbt-bqai package - #437
Open
bricefotzo wants to merge 1 commit into
Open
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
dbt-bqaiis a package that wraps the BigQueryAI.*function family:AI.GENERATE,AI.GENERATE_BOOL/INT/DOUBLE,AI.CLASSIFY,AI.SCORE,AI.IF,AI.EMBED- so they can be called from dbt models without repeating the connection, endpoint and model-parameter boilerplate on every call. Defaults are configured once via vars indbt_project.ymland can be overridden per call.It also ships two generic data tests (
assert_valid_category,assert_embedding_dimension) for validating AI outputs, and defaults for Vertex AI cost controls (thinking_budget,max_error_ratio, optimized/embeddings path).Link to your package's repository: https://github.com/bricefotzo/dbt-bqai
(Context: I first opened dbt-labs/hub.getdbt.com#4611 by mistake; @b-per kindly pointed me to the hubcap flow. Thanks!)
Checklist
Real world usage
First run experience
Customisability
Dependencies
Dependencies on dbt Core
require-dbt-versionrange indbt_project.yml. Example: A package which depends on functionality added in dbt Core 1.2 should set itsrequire-dbt-versionproperty to[">=1.2.0", "<2.0.0"].Dependencies on other packages defined in packages.yml:
(the package has no
packages.ymldependencies of its own)Interoperability
{{ dbt.except() }}and{{ dbt.type_string() }}.users.Versioning
hubcap/version.py(examples).