Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Vertex AI agent builder - data store

I have a data store that is CSV with question, answer and url columns, I am able to make a structured data store and using custom prompt ( without examples) as I need short responses. 

1) Can I still use default prompt in data store and still limit characters of response? Also in custom prompt, 

```[1] title of first source

content of first source

[2] title of second source

content of second source ```

This was the sources chunk in custom prompt(link), so the title is the name of the saved document in the bucket right? This works for pdf, but for CSV each row is a document in data store for CSV, how can I give title and provide content? Just provide me one example.

 

MAIN ISSUE:

When I'm asking for the link of a specific website title (title name is in questions) in dialogflow, its is providing the text available in answer column( which is a short description), but I need the url in the URLs columns. Please note that I don't want to display links to the user as data store response payload, I just want the link text to be displayed from the URLs columns. 

Any suggestions would be helpful, thank you.

Solved Solved
4 3 1,772
1 ACCEPTED SOLUTION

I think it is going to be hard to extract that data using just a prompt

View solution in original post

3 REPLIES 3

Hi,

You have to use the variable 

$sources

You can find a full example here:  https://cloud.google.com/dialogflow/vertex/docs/concept/data-store-agent#data_store_model_selection_...

Best,

Xavi

1)Yes yes, I have used to sources and the same custom prompt example changing it for my use case. Only issue is that I'm not able to understand how the sources were numbered for each example in the custom prompt example shared by you.

 

2) *Also my data store csv has question, answer and url columns. Example ( blog about food, "short description of the blog", " https link"), so when I asked link to blog food, it's just giving description, I'm not able to get an url.*

Thanks again.

I think it is going to be hard to extract that data using just a prompt