Natural Language Query in MongoDB Compass throws Invalid JSON response errors

I am trying to use the natural language query in MongoDB Compass. I am using a query such as:

Give me the list of the names of the restaurant documents. Each document in the restaurant collection has a “name” attribute. This throws the following error:

invalid json response body at reason: Unexpected end of JSON input.

Is anyone else experiencing this?


Sounds like a bug. You should file an issue.

As @Jack_Woehr mentioned, if you file a ticket, we can take a look at the issue. Please include as much information as possible in the ticket description. In the meantime, you can also try rephrasing the prompt to see if the model produces different results that work.

I have the same issue too