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

Runtime error during local development #43

Closed
dmwelgus opened this issue Jun 5, 2024 · 4 comments
Closed

Runtime error during local development #43

dmwelgus opened this issue Jun 5, 2024 · 4 comments

Comments

@dmwelgus
Copy link

dmwelgus commented Jun 5, 2024

I'm seeing the following runtime error when I try to run the extension locally:

Screenshot 2024-06-05 at 5 01 46 PM

I think it might be an issue with how the examples were loaded to Big Query. Is explore_assistant_examples supposed to have a separate row for each example (i.e. {'input': ..., 'output': ...}) or is it supposed to have a single row with the examples packed into an array (e.g. [{'input': ..., 'output': ...}, {'input': ..., 'output': ...}]).

@dmwelgus
Copy link
Author

dmwelgus commented Jun 5, 2024

Nevermind. The issue was that I didn't have any examples loaded into explore_assistant_refinement_examples. It's working now

@arodriguezd
Copy link

Hi, I have the same problem, I have deployed a GCP instance for the frontend and we are using BigQuery as backend the backend deployment was made with the example found in the repository.
All in the same project. The Bigquery API has been enabled at the instance level. On the other hand the nginx has been installed, to perform proxy with the application.

Also take down the examples in the bigquery.

charge the capture of one of the examples.
image

image
Thanks in advance for any help.

@cavvia
Copy link

cavvia commented Jul 17, 2024

I also got this error with the BigQuery backend. In my case I verified via BigQuery Studio that both example tables are loaded with data (using the script provided). The BigQuery connection was also working fine.

On the BigQuery side, I can see requests coming in via the logging console but no errors. However, when looking at the query traces, I could see the query using a WHERE explore="model:explore" syntax in its constraint. This was unexpected and should be documented in the examples script documentation. Those scripts take a --explore_id arg which should actually be populated with a model:explore syntax in order for this to work. After re-running those scripts with the correct explore_id the error cleared.

@LukaFontanilla
Copy link
Collaborator

@cavvia there will be some documentation updates coming soon that will cover unclear instructions like the proper format the explore_id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants