Hi I'm currently testing the Vertex AI integration within Dialogflow CX. How can one use the metadata filter in Dialogflow?
The Docs describe the Filter but it doesn't seem to be available in the UI:
Answering my own question:
seems Dialogflow CX doesn't support Vertex AI Search with unstructured Data.
If one is using Vertex AI Search API the Metadata Filter is available via API:
(replace any ${} with you own variable)
curl -X POST -H "Authorization: Bearer $(gcloud auth print-access-token)" -H "Content-Type: application/json" "https://eu-discoveryengine.googleapis.com/v1alpha/projects/${project_number}/locations/eu/collection..." -d '{"query":"${your_question}","pageSize":10,"queryExpansionSpec":{"condition":"AUTO"},"spellCorrectionSpec":{"mode":"AUTO"},"contentSearchSpec":{"summarySpec":{"summaryResultCount":5,"ignoreAdversarialQuery":true,"includeCitations":true},"snippetSpec":{"returnSnippet":true},"extractiveContentSpec":{"maxExtractiveAnswerCount":1}}, "filter": "${your_metadata_name}: ANY(\"${your_metadata_filter}")"}'
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |