Algunos productos y funciones están en proceso de cambiar de nombre. Las funciones de flujo y de la guía generativa también se migrarán a una sola consola consolidada. Consulta los detalles.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Según la configuración predeterminada, la coincidencia de entidades requiere una coincidencia exacta de una de las entradas de las entidades.
Esto funciona bien con los sinónimos y los valores de entrada de entidades de una sola palabra, pero puede volverse un problema con los sinónimos y los valores de varias palabras.
Por ejemplo, considera una entidad bola que debería coincidir con las siguientes partes de la expresión del usuario final:
“bola”
“bola roja”
“roja bola”
“bola pequeña”
“pequeña bola”
“bola roja pequeña”
“roja bola pequeña”
“bola pequeña roja”
“pequeña bola roja”
“pequeña roja bola”
“roja pequeña bola”
Por lo general, a fin de que se produzca una coincidencia, debes definir un valor de entrada de entidades y sinónimos para cada una de estas permutaciones.
Sin embargo, si se habilita la coincidencia parcial, el orden de las palabras en un valor o sinónimo no es importante.
Las siguientes expresiones activarán una coincidencia con todos los ejemplos anteriores:
La coincidencia parcial no se puede habilitar para las entidades de expresión regular.
Estas funciones son mutuamente excluyentes.
La coincidencia parcial no se debe habilitar para las entidades que se usan a fin de coincidir con valores estrictos, como ID, números de identificación nacional, etcétera.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (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."]]