Filtering in datastore tool

Hi,

I've been trying to implement a datastore tool in my DialogFlow/Generative playbooks agent. I initialized the datastore with a JSONL file so that I can add metadata to the files, in my case these are documents on different companies. However, whenever I try to add a filter to the datastore tool, it does not return any text. I do specify the filter in the right format. Whenever I remove the filter from the request it does work. How to deal with this? Thanks for your help!

Kind regards,

Sam

Solved Solved
0 7 363
3 ACCEPTED SOLUTIONS

can you please provide a snippet of the code you are using?

Best,

Xavi

View solution in original post

Is that type a datastore tool type or an openapi tool?

Best,

Xavi

View solution in original post

The filter should be supported, check the docs here: https://cloud.google.com/dialogflow/vertex/docs/concept/tools#data-store

did you try that in that format?

Best,

Xavi

View solution in original post

7 REPLIES 7

can you please provide a snippet of the code you are using?

Best,

Xavi

Hi Xavi,

Thanks for the quick reply, But I am doing this in the DialogFlow editor/interface so I do not really have a snippet of code available. 

samneefjes_1-1712652339773.png

This is the only thing I can provide, but do not think this helps for your understanding.

Kind regards,

Sam

 

Is that type a datastore tool type or an openapi tool?

Best,

Xavi

a datastore tool type. I have another version with a openAPI that utilizes a discoveryengine search engine, and that one does filter correctly. So I was wondering whether the Datastore tool does not.

The filter should be supported, check the docs here: https://cloud.google.com/dialogflow/vertex/docs/concept/tools#data-store

did you try that in that format?

Best,

Xavi

Yes I've tried it in this exact format, checked the spelling in my datastore as well multiple times, so I can't really get my head around the fact that it does not work.

Kind regards,

Sam

yeah,

I would suggest opening a ticket in issuetracker: https://cloud.google.com/support/docs/issue-trackers