google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

Remove google-cloud-data-qna which has been replaced by `Duet AI in Looker`

Open mfernandezsidn opened this issue 2 years ago • 4 comments

I can't find any documentation in the internet and I don't know how this functionality is used.

I want to connect the dataqna_v1alpha with my biquery project but I can't find the right way to do this. Any help?

This is the code I have so far which I have copied-pasted from this repository

`from google.cloud import dataqna_v1alpha

class DataQnA: def init(self): pass

def sample_create_question(self):
    # Create a client
    client = dataqna_v1alpha.QuestionServiceClient()

    # Initialize request argument(s)
    question = dataqna_v1alpha.Question()
    # question.scopes = ['scopes_value1', 'scopes_value2']
    question.query = "How does this work?"

    request = dataqna_v1alpha.CreateQuestionRequest(
        parent="parent_value",
        question=question,
    )

    # Make the request
    response = client.create_question(request=request)

    # Handle the response
    print(response)

test = DataQnA() test.sample_create_question()`

mfernandezsidn avatar Jan 23 '24 16:01 mfernandezsidn

Hi @mfernandezsidn,

An update was posted on the announcement for BigQuery DataQnA recommending to use Conversational Queries as part of Duet AI in Looker instead:

Update Nov 13, 2023: We introduced Conversational Queries as part of Duet AI in Looker at Cloud Next 2023, to continue our mission of providing a natural language interface to query business data. To learn more about Duet AI in Looker, please see our blog post.

From https://cloud.google.com/blog/products/business-intelligence/whats-new-for-looker-and-business-intelligence-at-next-23,

Chat with your business data and design your future with a product built for it. Contact your Google Cloud representative to learn more.

I'm going to keep this issue open to track updating our documentation

parthea avatar Jan 23 '24 18:01 parthea

Hi @parthea

Thanks for your response. There is no way to do the implementation with Python?

mfernandezsidn avatar Jan 23 '24 20:01 mfernandezsidn

@mfernandezsidn,

The issue is not specific to the python library but rather the API. The BigQuery Data QnA API was not released as GA and it is now recommended to use Duet AI in Looker.

You can request to sign up for Duet AI in Looker Preview using this form https://docs.google.com/forms/d/e/1FAIpQLSefBWbxchQFyZB9EOOcRxYTRi-16TezwRExW-x-XJRfeklCiA/viewform

Duet AI in Looker Preview
Hello!

Looker (Google Cloud core) and Looker Studio Pro admins may complete this form to request access to Duet AI in Looker Preview including Project Alchemist Experimental Preview. This program contains different products and features at a Pre-GA stage of development which you are eligible to request participation in. 

Please complete the next steps for each product or feature area you are interested in participating in. Each area may have further conditions or limitations on participation.

Duet AI in Looker Preview has six capabilities-- four on Looker Studio Pro, and two on Looker (Google Cloud core). 

We will be enabling access to Duet AI in Looker Preview in weekly batches. We will send a notification with next steps once your organization has been enabled. Completing this form does not guarantee access to any of the six capabilities.

When you go to this form which exists at the bottom of this page, there is a note that says

UPDATE: Ask Looker is now a part of "Duet AI in Looker" , and called Conversational Queries. You can express interest in testing out our new LLM-backed feature by signing up at this link.

parthea avatar Jan 23 '24 21:01 parthea