Skip to main content

How to Configure Marketplace Semantic Content

Use this procedure to choose the descriptor fields embedded for Products and Consumables. You need to have platform.settings-edit permission and access to Administration > Configuration > Marketplace > Semantic Content.

Before changing content in an active installation, schedule a full rebuild. Saving content changes makes new semantic searches unavailable until the rebuild completes successfully. Saving alone does not regenerate existing embeddings.

Follow the editing sections relevant to your changes; you do not need to complete every section. Always finish with Apply the content changes.

Set default content for Products and Consumables​

  1. Open Semantic Content and select the Product tab.

  2. Edit the Default for Product definition. Enter a YAML recipe list. The following example embeds the Product's name and description:

    - id: entity
    fields:
    name: self.name
    description: self.description
  3. To include another descriptor field, add it to the list before saving. When your descriptors contain domain, the following example adds the Product's domain to the embedded name and description:

    - id: entity
    fields:
    name: self.name
    description: self.description
    domain: self.domain
  4. Select Save. On the Consumable tab, edit Default for Consumable and save the same list if both kinds should use these fields.

Use actual paths from your published descriptors. For syntax and allowed scopes, see Semantic content syntax.

Replace a type's content​

  1. Select the Product or Consumable tab for the type you want to customize.

  2. Select Add override and choose the eligible Type. Use the definition's edit action for an existing override.

  3. Replace the editor contents with the complete recipe list for that type. The following example embeds only the name and description for the selected type, replacing its inherited content definition:

    - id: entity
    fields:
    name: self.name
    description: self.description
  4. Select Save. This type no longer inherits other fields or recipes from the kind default. Include every recipe you intend to retain.

  5. To intentionally omit semantic content for this type, save [] as its override. To restore the kind default instead, use Remove override and confirm the removal.

Include direct relationship context​

Keep existing fields and recipes you still need. In the examples below, add the relationship field to your existing entity recipe rather than replacing the entire list. If no entity recipe exists, add the recipe shown below with a unique ID within your list.

  1. To include the parent Product's description in the Consumable content, add productDescription: parent.description to the entity recipe's fields in the Consumable default or a Consumable type override, then save. For example:

    - id: entity
    fields:
    name: self.name
    description: self.description
    productDescription: parent.description
  2. To include Consumable descriptions in Product content instead, add consumableDescriptions: children.description to the entity recipe's fields in the Product default or a Product type override, then save. With multiple Consumables, children.description includes their non-empty descriptions together in the Product's semantic content; it does not create separate embeddings for each child. For example:

    - id: entity
    fields:
    name: self.name
    description: self.description
    consumableDescriptions: children.description
  3. Publish the related Product or Consumables in the same environment as the source. For scope restrictions and handling of unavailable context, see Semantic content syntax.

Embed individual collection elements​

  1. Identify an array in your source descriptor and an immutable, unique identifier on each element. For example, this descriptor fragment has a columns array with a stable id:

    columns:
    - id: customer-id
    name: Customer identifier
    description: Stable identifier for a customer
    - id: order-total
    name: Order total
    description: Total amount of an order
  2. Edit the applicable default or type override. Keep the entity recipe and add one collection recipe:

    - id: entity
    fields:
    name: self.name
    description: self.description
    - id: column
    collection: columns
    identity: id
    fields:
    sourceName: self.name
    columnName: item.name
    columnDescription: item.description
  3. Replace columns and id with your descriptor's array path and the identity path relative to each item. Do not prefix either path with self or item. Use item only in field mappings. Keep recipe IDs unique within the list and stable across edits.

  4. Check the source data against the collection identity requirements and correct any missing or duplicate identities before publishing.

  5. Select Save.

Apply the content changes​

  1. Finish all default and override edits. If you changed source descriptors to add fields or stable identities, publish those changes to the intended environments.
  2. Run Rebuild embeddings to regenerate previously published content across all configured environments. Also rebuild after adding or removing a configured environment; configuration changes alone do not backfill it.
  3. Wait for Completed in Embeddings Progress. Return to Marketplace configuration and confirm that Enable Semantic Search is available. If semantic retrieval was off, turn it on. If the control is unavailable, resolve the readiness prerequisite it displays before enabling retrieval.