Skip to content

[QUERY] Can you relate the ChapterTitle and the Narrative using the array index in the json result? #44949

@JohanKlijn

Description

@JohanKlijn

Library name and version

Azure.AI.Language.Conversations 1.1.0

Query/Question

When you create a summary task with the summaryAspects ChapterTitle and Narrative, like this:

"tasks": [
    {
      "taskName": "Conversation Task 1",
      "kind": "ConversationalSummarizationTask",
      "parameters": {
        "summaryAspects": [
          "narrative",
          "chapterTitle",
        ]
      }
    }
  ]

you get a response like this:

{
	"tasks": {
		"completed": 1,
		"failed": 0,
		"inProgress": 0,
		"total": 1,
		"items": [
			{
				"kind": "conversationalSummarizationResults",
				"taskName": "summary_narrative",
				"lastUpdateDateTime": "2024-07-01T07:53:10.2874918Z",
				"status": "succeeded",
				"results": {
					"conversations": [
						{
							"summaries": [
								{
									"aspect": "narrative",
									"text": "Discussed an issue with the ProductX not working properly after being moved into a new network segmentation. They attempted to resolve the issue by upgrading the firmware on a spare device and conducting a trace on the ProductX portal. They also discovered an issue with messages not being received from outside the organization, which they attributed to policy restrictions.",
									"contexts": []
								},
								{
									"aspect": "narrative",
									"text": "Discussed a series of tests involving a virtual door, a call to a person on site, and a real production intercom. The first test involved a virtual door opening, the second involved a person calling himself and sharing the screen, and the third test involved switching to the production intercom. The speaker also mentioned a potential issue with the device, which was resolved in the firmware, and confirmed that the audio and video were working well.",
									"contexts": []
								},
								{
									"aspect": "chapterTitle",
									"text": "Discussion on Troubleshooting an Interfessor in an IoT Network",
									"contexts": []
								},
								{
									"aspect": "chapterTitle",
									"text": "Testing and Troubleshooting an In-Person Voice Control System",
									"contexts": []
								}
							],
							"id": "conversation1",
							"warnings": []
						}
					],
					"errors": [],
					"modelVersion": "latest"
				}
			}
		]
	}
}

The question is: is there a one-to-one relationship between the returned narratives and ChapterTitles, and can you related them using the position/index in the json? Meaning in the example about the ChapterTitle "Discussion on Troubleshooting an Interfessor in an IoT Network" corresponds to the first narrative occurrence?

Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue is related to a non-management packageCognitive - LanguageService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions