Google-Cloud-Discoveryengine-V1beta

 view release on metacpan or  search on metacpan

lib/Google/Cloud/Discoveryengine/V1beta/AssistantService.pm  view on Meta::CPAN

AAICBJsIABIDRAQyClUKBAYAAgMSBEgCTgMaRyBVcGRhdGVzIGFuIFtBc3Npc3RhbnRdW2dv
b2dsZS5jbG91ZC5kaXNjb3ZlcnllbmdpbmUudjFiZXRhLkFzc2lzdGFudF0KCgwKBQYAAgMB
EgNIBhUKDAoFBgACAwISA0gWLAoMCgUGAAIDAxIDSDdACg0KBQYAAgMEEgRJBEwGChEKCQYA
AgMEsMq8IhIESQRMBgoMCgUGAAIDBBIDTQRDCg8KCAYAAgMEmwgAEgNNBEMKUwoEBgACBBIE
UQJWAxpFIEdldHMgYW4gW0Fzc2lzdGFudF1bZ29vZ2xlLmNsb3VkLmRpc2NvdmVyeWVuZ2lu
ZS52MWJldGEuQXNzaXN0YW50XS4KCgwKBQYAAgQBEgNRBhIKDAoFBgACBAISA1ETJgoMCgUG
AAIEAxIDUTE6Cg0KBQYAAgQEEgRSBFQGChEKCQYAAgQEsMq8IhIEUgRUBgoMCgUGAAIEBBID
VQQyCg8KCAYAAgQEmwgAEgNVBDIKlgEKBAYAAgUSBFoCXwMahwEgTGlzdHMgYWxsIFtBc3Np
c3RhbnRdW2dvb2dsZS5jbG91ZC5kaXNjb3ZlcnllbmdpbmUudjFiZXRhLkFzc2lzdGFudF1z
IHVuZGVyCiBhbiBbRW5naW5lXVtnb29nbGUuY2xvdWQuZGlzY292ZXJ5ZW5naW5lLnYxYmV0
YS5FbmdpbmVdLgoKDAoFBgACBQESA1oGFAoMCgUGAAIFAhIDWhUqCgwKBQYAAgUDEgNaNUsK
DQoFBgACBQQSBFsEXQYKEQoJBgACBQSwyrwiEgRbBF0GCgwKBQYAAgUEEgNeBDQKDwoIBgAC
BQSbCAASA14ENAorCgIEABIEYwBrARofIFVzZXIgbWV0YWRhdGEgb2YgdGhlIHJlcXVlc3Qu
CgoKCgMEAAESA2MIGgo+CgQEAAIAEgNlAkAaMSBPcHRpb25hbC4gSUFOQSB0aW1lIHpvbmUs
IGUuZy4gRXVyb3BlL0J1ZGFwZXN0LgoKDAoFBAACAAUSA2UCCAoMCgUEAAIAARIDZQkSCgwK
BQQAAgADEgNlFRYKDAoFBAACAAgSA2UXPwoPCggEAAIACJwIABIDZRg+Cs4BCgQEAAIBEgNq
Ak4awAEgT3B0aW9uYWwuIFByZWZlcnJlZCBsYW5ndWFnZSB0byBiZSB1c2VkIGZvciBhbnN3
ZXJpbmcgaWYgbGFuZ3VhZ2UgZGV0ZWN0aW9uCiBmYWlscy4gQWxzbyB1c2VkIGFzIHRoZSBs
YW5ndWFnZSBvZiBlcnJvciBtZXNzYWdlcyBjcmVhdGVkIGJ5IGFjdGlvbnMsCiByZWdhcmRs
ZXNzIG9mIGxhbmd1YWdlIGRldGVjdGlvbiByZXN1bHRzLgoKDAoFBAACAQUSA2oCCAoMCgUE
AAIBARIDagkgCgwKBQQAAgEDEgNqIyQKDAoFBAACAQgSA2olTQoPCggEAAIBCJwIABIDaiZM

lib/Google/Cloud/Discoveryengine/V1beta/SearchService.pm  view on Meta::CPAN

is set to `RANK_BY_FORMULA`, the following expression types (and
combinations of those chained using + or
* operators) are supported:

  * `double`
  * `signal`
  * `log(signal)`
  * `exp(signal)`
  * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
  argument being a denominator constant.
  * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
  * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
  signal2 | double, else returns signal1.

  Here are a few examples of ranking formulas that use the supported
  ranking expression types:

  - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
  -- mostly rank by the logarithm of `keyword_similarity_score` with slight
  `semantic_smilarity_score` adjustment.
  - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
  is_nan(keyword_similarity_score)` -- rank by the exponent of
  `semantic_similarity_score` filling the value with 0 if it's NaN, also
  add constant 0.3 adjustment to the final score if
  `semantic_similarity_score` is NaN.
  - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
  rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
  of `keyword_similarity_score` with slight adjustment of reciprocal rank
  of `semantic_smilarity_score`.

The following signals are supported:

  * `semantic_similarity_score`: semantic similarity adjustment that is
  calculated using the embeddings generated by a proprietary Google model.
  This score determines how semantically similar a search query is to a



( run in 3.301 seconds using v1.01-cache-2.11-cpan-60884a8df76 )