New Features
Vertex AI Search and Conversation Engines and Data Stores!😍🚒💿
SUPER excited to finally add support for programmatic creation of Engines and Data Stores for Vertex AI Search and Conversation!
This was a big collaboration between several teams including Vertex Applied AI Incubator, Vertex Search, Dialogflow and DevRel to get alignment and access to the proper API endpoints for making this happen!
In just a few lines of code, you can now create a fully working Engine/Data Store!
python
from dfcx_scrapi.core.data_stores import DataStores
from dfcx_scrapi.core.engines import Engines
from dfcx_scrapi.core.sites import Sites
PROJECT_ID = "PROJECT_ID"
CREDS_PATH = "YOUR_CREDS_PATH
ds = DataStores(project_id=PROJECT_ID)
ds.create_datastore("my-cool-website-datastore")
ds_map = ds.get_data_stores_map(reverse=True)
my_ds = ds_map["my-cool-website-datastore"]
sites = Sites(project_id=PROJECT_ID)
sites.create_site(data_store_id=my_ds, uri_pattern="www.example.com/blog/*", include_site=True)
sites.create_site(data_store_id=my_ds, uri_pattern="www.example.com/news", include_site=False)
eng = Engines(PROJECT_ID, creds_path=CREDS_PATH)
eng_proto = eng.build_chat_engine_proto(
display_name="my-cool-website-engine", business_name="Google Example", data_store_ids=my_ds)
eng.create_engine(eng_proto)
In addition to Engine and Data Store creation, we provide many other quality of life management endpoints like:
- Enable / Disable Advanced Site Search
- Recrawl URIs
- Check Indexing Status
- Check Verification Status
- ...and much more!
Generators ♺🏗️
Excited to finally add full programmatic support for [Dialogflow CX Generators](https://cloud.google.com/dialogflow/cx/docs/concept/generators)!
You can now create, list, get, delete and update Generators and prompts directly from SCRAPI!
Fun Fact: 99% of this class was written by [Gemini](https://deepmind.google/technologies/gemini/#introduction)! ✨🤩😮
Generative Fallback 🍂🔙
Full support for modifying and creating Generative Fallback prompts and templates now available in SCRAPI!
Data Store Prompt Settings ⚙️
You can now programmatically modify the Generative AI Settings for Data Store prompts!
This includes modifying the Business Name, Agent Name, Agent Scope, and other settings.
Enhancements
- Added option in `restore_agent` to allow for Fallback Settings to be set when importing an Agent
- Added `delete_transition_route_group`
- Added `force` arg for `delete_entity_type` to ensure the Entity Type is deleted even if it is referenced
- Added Generative Settings builder class
- Added support for Generative Settings in Agent builder class
- Added support for `Start Page` (i.e. Flow Object) in the `NluUtils` class that allows users to run similarity comparison on Flow Object intents
- Added support for Agent Level Route Groups
Bug Fix
- Fixed a bug with `delete_entity_type` where passing the `obj` arg would not delete the Entity Type
- Fixed several bugs in `examples/google_sheets_series/cx_to_sheets_by_flow.ipynb` that were using outdated code refs
What's Changed
* Feature/agent restore option by jkshj21 in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/152
* Feature/delete route group by MRyderOC in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/151
* Add new Generators Feature by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/155
* Bug/google sheets series by jkshj21 in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/154
* Generative Settings Builders and Supporting Agent Methods by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/156
* Add full support for Data Stores by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/158
* Feature/load start page intents by hjosiah in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/147
New Contributors
* jkshj21 made their first contribution in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/152
* hjosiah made their first contribution in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/147
* [Gemini](https://deepmind.google/technologies/gemini/#introduction) made their first contribution in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/155
**Full Changelog**: https://github.com/GoogleCloudPlatform/dfcx-scrapi/compare/1.9.0...1.10.0