Overview
The Suki Mobile SDK provides methods to check the processing status and retrieve the generated content of a session. You can use these methods to track the progress of your session and retrieve the generated content after it has been completed. The diagram below illustrates the process of retrieving the generated content of a session.Before calling any of these methods, you must ensure that the SDK is initialized and that you are using a valid
recordingId from an active or completed session.Check Status And Retrieve Content
After you end a session, you can asynchronously check its processing status and retrieve the generated content. You must provide a validrecordingId for the session you want to query.
All retrieval methods are asynchronous. The result is returned in a , which provides either the requested content or an error.
Check The Processing Status
Use thestatus(for:) method to get the current content generation status of a session.
Get Generated Suggestions
To retrieve the main clinical note content, call thecontent(for:) method.
Get The Audio Transcript
You can retrieve the full transcript of the conversation using thetranscript(for:) method.
Get Structured Data
Use thegetStructuredData(for:) method to retrieve structured output, such as diagnoses and other entities generated from the session.
Submit User Feedback
New You can now submit user feedback for the AI-generated content.submitFeedback(_:for:onCompletion:) to collect and submit user feedback on AI-generated content by using the QuantitativeFeedback and QualitativeFeedback structs.
This allows you to capture both quantitative (ratings) and qualitative (comments) feedback. Your feedback helps Suki improve the quality of its AI-generated content.
Function Signature
Required Data Structures
Submitting feedback requires you to construct aFeedbackSubmission object. This object uses the FeedbackEntity and QuantitativeFeedback data structures.
Implementation Example
To submit feedback, you first create theFeedbackSubmission object and then pass it to the submitFeedback method along with the recordingId.
The method is asynchronous. The completion handler returns a Result containing either a success message with the unique feedbackId or an error if the submission failed.
- You can only provide feedback for each entity type once per session.
-
At present feedback submissions are only supported for the
.contententity. This may be expanded in the future. - Submitting feedback for the same entity type a second time in the same session will be considered invalid.
Rating System
-
The
maxRatingmust be greater than theminRating. -
The rating must be within the inclusive range of
minRatingandmaxRating. -
The
commentsstring is optional and has a maximum length of 2000 characters.
-
You can configure any integer rating scale. For example, you can create a 1 to 5 scale by setting
minRatingto 1 andmaxRatingto 5, or a binary scale by setting the values to 0 and 1. - Suki recommends using a scale of 1 to 5 for ratings.
FAQs
Why is the content not being generated?
Why is the content not being generated?
The content is not being generated because the session is not in a completed state or the session was too short. We require a minimum of 1 minute of audio to generate content. You must ensure that the session is in a completed state before retrieving the content.
Why is the content not being retrieved?
Why is the content not being retrieved?
The content is not being retrieved because the
recordingId is not valid. You must ensure that you are using a valid recordingId from an active or completed session.How do I know if the content has been generated?
How do I know if the content has been generated?
You can check the status of the session to determine if the content has been generated.
How do I know if the content has been retrieved?
How do I know if the content has been retrieved?
You can check the status of the session to determine if the content has been retrieved.
What happens if the internet connection is lost?
What happens if the internet connection is lost?
If the internet connection is lost, the content will be retrieved when the connection is restored. Please refer to the Offline Mode guide for more information.
What happens if the session is not completed?
What happens if the session is not completed?
The content will not be retrieved if the session is not completed. You must ensure that the session is in a completed state before retrieving the content.