Skip to content

alloydbainl tool fails to execute statement #1752

@tombotch

Description

@tombotch

Prerequisites

  • I've searched the current open issues
  • I've updated to the latest version of Toolbox

Toolbox version

0.17.0

Environment

  1. OS type and version: (output of uname -a) N/A
  2. How are you running Toolbox:
  • As a container (e.g. from us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:$VERSION)

Client

No response

Expected Behavior

The alloydbainl tool should generate a SQL statement based on the natural language question.

Current Behavior

An error is returned stating that the tool returned a null result or there was an error.

Steps to reproduce?

  1. Create a tool using alloydbainl
  2. Attempt to use it in toolbox UI
    ...

Additional Details

The root cause of this is due to the order of parameters changing in the alloydb_ai_nl.execute_nl_query function, which means that the nl_config_id is passed as the question, and the question as the config ID.

Metadata

Metadata

Assignees

Labels

priority: p0Highest priority. Critical issue. P0 implies highest priority.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions