Skip to content
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

Cannot pass source_table parameter as a Resolvable #7

Open
vitalii-filipov opened this issue Dec 20, 2024 · 0 comments
Open

Cannot pass source_table parameter as a Resolvable #7

vitalii-filipov opened this issue Dec 20, 2024 · 0 comments

Comments

@vitalii-filipov
Copy link

Hello Everyone,

I would like to execute generate_text function with Resolvable object, so that I can pass non default dataset, like this

// Name of the table for storing the result
let output_table = {
    name: "execution_result",
    schema: "non_default_dataset",
};

// Execute the pipeline
bqml.generate_text(
    output_table,
    keys,
    model,
    (ctx) => `SELECT *, ${prompt_template} AS prompt FROM (${source_table_func(ctx)})`,
    {
        flatten_json_output: true
    });

Could you add support for the output_table parameter to accept a Resolvable object?

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

No branches or pull requests

1 participant