Beberapa produk dan fitur sedang dalam proses penggantian nama. Fitur playbook dan alur generatif juga dimigrasikan ke satu konsol gabungan. Lihat detailnya.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Secara default, pencocokan entitas memerlukan kecocokan persis untuk salah satu entri entitas.
Hal ini berfungsi dengan baik untuk nilai entri entity kata tunggal dan sinonim,
tetapi dapat menimbulkan masalah untuk nilai dan sinonim multi-kata.
Misalnya,
pertimbangkan entity bola
yang harus dicocokkan untuk bagian ekspresi pengguna akhir berikut:
"bola"
"bola merah"
"bola merah"
"small ball"
"ball small"
"bola merah kecil"
"bola kecil merah"
"bola kecil merah"
"bola merah kecil"
"bola kecil merah"
"bola merah kecil"
Agar kecocokan terjadi,
Anda biasanya perlu menentukan nilai entri entity dan sinonim untuk setiap permutasi ini.
Namun, dengan pencocokan fuzzy yang diaktifkan,
urutan kata dalam nilai atau sinonim tidak penting.
Berikut ini akan memicu kecocokan untuk semua contoh di atas:
Pencocokan fuzzy tidak dapat diaktifkan untuk
entitas ekspresi reguler.
Fitur ini saling eksklusif.
Pencocokan fuzzy tidak boleh diaktifkan untuk entity yang digunakan untuk mencocokkan nilai ketat seperti ID, nomor tanda pengenal nasional, dan sebagainya.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-03 UTC."],[[["\u003cp\u003eEntity matching typically requires an exact match for entity entries, which can be problematic for multi-word values and their various permutations.\u003c/p\u003e\n"],["\u003cp\u003eFuzzy matching, when enabled, allows for word order flexibility within multi-word entity values or synonyms, simplifying the matching process.\u003c/p\u003e\n"],["\u003cp\u003eYou can enable fuzzy matching for an entity through the Dialogflow CX console by checking the "Fuzzy matching" option during entity creation or through the API by setting \u003ccode\u003eEntityType.enableFuzzyExtraction\u003c/code\u003e to true.\u003c/p\u003e\n"],["\u003cp\u003eFuzzy matching should not be enabled for regexp entities or for entities that require matching strict values like IDs or identification numbers.\u003c/p\u003e\n"]]],[],null,["# Fuzzy matching\n\nBy default, entity matching requires an exact match for one of the entity entries.\nThis works well for single-word entity entry values and synonyms\nbut may present a problem for multi-word values and synonyms.\nFor example,\nconsider a *ball* entity\nthat should be matched for the following end-user expression parts:\n\n- \"ball\"\n- \"red ball\"\n- \"ball red\"\n- \"small ball\"\n- \"ball small\"\n- \"small red ball\"\n- \"small ball red\"\n- \"red small ball\"\n- \"red ball small\"\n- \"ball small red\"\n- \"ball red small\"\n\nFor a match to occur,\nyou normally need to define an entity entry value and synonyms for each of these permutations.\nHowever, with fuzzy matching enabled,\nthe ordering of the words in a value or synonym does not matter.\nThe following will trigger a match for all of the examples above:\n\n- \"ball\"\n- \"red ball\"\n- \"small ball\"\n- \"small red ball\"\n\nCreate a fuzzy matching entity\n------------------------------\n\n### Console\n\n1. Open the [Dialogflow CX console](https://dialogflow.cloud.google.com/cx/projects).\n2. Choose your GCP project.\n3. Select your agent.\n4. Select the **Manage** tab.\n5. Click **Entity Types**.\n6. Click **Create**.\n7. Check **Fuzzy matching**.\n8. Complete remaining fields.\n9. Click **Save**.\n\n### API\n\nSet the `EntityType.enableFuzzyExtraction` field to true.\n\n\nGo to the EntityType API reference \n**Select a protocol and version for the EntityType reference:**\n\nClose\n\n\u003cbr /\u003e\n\nLimitations\n-----------\n\nThe following limitations apply:\n\n- Fuzzy matching cannot be enabled for [regexp entities](/dialogflow/docs/entities-regexp). These features are mutually exclusive.\n- Fuzzy matching should not be enabled for entities which are used to match strict values like IDs, national identification numbers, and so on."]]