Skip to content

Commit 32347f7

Browse files
Fix cspell error: rename 'Knowledge srcs' to 'Knowledge sources'
cspell flagged 'srcs' as an unknown word in 4 files. Replaced 'Knowledge srcs:' with 'Knowledge sources:' in the printed label across the Sample16 sync/async samples (and matching tests for consistency), the run_sample.sh DEMO MODE message, and the SKILL.md prompt. The label now matches the underlying API name (getKnowledgeSources).
1 parent 691bde4 commit 32347f7

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

sdk/contentunderstanding/azure-ai-contentunderstanding/.github/skills/cu-sdk-sample-run/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ The repo ships labeled receipt training data at `src/samples/resources/receipt_l
385385
> **must** ask the user the questions below and act on the answer:
386386
>
387387
> 1. "Do you want to **train with labeled data** (recommended), or **create the analyzer without training data** (demo mode)?"
388-
> - If **demo mode**: confirm explicitly — "I will run Sample16 *without* training data. The output will say `Knowledge srcs: 0` and you will see a `DEMO MODE` banner. The labeled-data API path will **not** be exercised. OK to proceed?" Only continue after the user says yes; leave both Option A and Option B env vars empty/unset.
388+
> - If **demo mode**: confirm explicitly — "I will run Sample16 *without* training data. The output will say `Knowledge sources: 0` and you will see a `DEMO MODE` banner. The labeled-data API path will **not** be exercised. OK to proceed?" Only continue after the user says yes; leave both Option A and Option B env vars empty/unset.
389389
> - If **with training data**: continue with one of the next two questions.
390390
> 2. "Will you use **Option A (pre-generated SAS URL)** or **Option B (auto-upload via `DefaultAzureCredential`)**?"
391391
> - **Option A**: ask for the SAS URL and (optionally) prefix; walk through the manual-upload steps above if not yet done.

sdk/contentunderstanding/azure-ai-contentunderstanding/.github/skills/cu-sdk-sample-run/scripts/run_sample.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ if [[ "$SAMPLE_NAME" == Sample16* ]]; then
226226
if [[ -z "${CONTENTUNDERSTANDING_TRAINING_DATA_STORAGE_ACCOUNT:-}" \
227227
|| -z "${CONTENTUNDERSTANDING_TRAINING_DATA_CONTAINER:-}" ]]; then
228228
print_warning "⚠ DEMO MODE: no training data configured for $SAMPLE_NAME."
229-
echo " The analyzer will be created without labeled data ('Knowledge srcs: 0')."
229+
echo " The analyzer will be created without labeled data ('Knowledge sources: 0')."
230230
echo " To exercise the labeled-data API path, configure ONE of:"
231231
echo " Option A: CONTENTUNDERSTANDING_TRAINING_DATA_SAS_URL=<container SAS URL>"
232232
echo " Option B: CONTENTUNDERSTANDING_TRAINING_DATA_STORAGE_ACCOUNT=<account>"

sdk/contentunderstanding/azure-ai-contentunderstanding/src/samples/java/com/azure/ai/contentunderstanding/samples/Sample16_CreateAnalyzerWithLabels.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public static void main(String[] args) {
245245
System.out.println(" Description: " + result.getDescription());
246246
System.out.println(" Base analyzer: " + result.getBaseAnalyzerId());
247247
System.out.println(" Fields: " + result.getFieldSchema().getFields().size());
248-
System.out.println(" Knowledge srcs: "
248+
System.out.println(" Knowledge sources: "
249249
+ (result.getKnowledgeSources() == null ? 0 : result.getKnowledgeSources().size()));
250250
// END: com.azure.ai.contentunderstanding.createAnalyzerWithLabels
251251

sdk/contentunderstanding/azure-ai-contentunderstanding/src/samples/java/com/azure/ai/contentunderstanding/samples/Sample16_CreateAnalyzerWithLabelsAsync.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public static void main(String[] args) throws InterruptedException {
263263
System.out.println(" Description: " + result.getDescription());
264264
System.out.println(" Base analyzer: " + result.getBaseAnalyzerId());
265265
System.out.println(" Fields: " + result.getFieldSchema().getFields().size());
266-
System.out.println(" Knowledge srcs: "
266+
System.out.println(" Knowledge sources: "
267267
+ (result.getKnowledgeSources() == null ? 0 : result.getKnowledgeSources().size()));
268268
// END: com.azure.ai.contentunderstanding.createAnalyzerWithLabelsAsync
269269

sdk/contentunderstanding/azure-ai-contentunderstanding/src/test/java/com/azure/ai/contentunderstanding/tests/samples/Sample16_CreateAnalyzerWithLabelsAsyncTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public void testCreateAnalyzerWithLabelsAsync() {
220220
System.out.println(" Description: " + result.getDescription());
221221
System.out.println(" Base analyzer: " + result.getBaseAnalyzerId());
222222
System.out.println(" Fields: " + result.getFieldSchema().getFields().size());
223-
System.out.println(" Knowledge srcs: "
223+
System.out.println(" Knowledge sources: "
224224
+ (result.getKnowledgeSources() == null ? 0 : result.getKnowledgeSources().size()));
225225
// END: com.azure.ai.contentunderstanding.createAnalyzerWithLabelsAsync
226226

sdk/contentunderstanding/azure-ai-contentunderstanding/src/test/java/com/azure/ai/contentunderstanding/tests/samples/Sample16_CreateAnalyzerWithLabelsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public void testCreateAnalyzerWithLabels() {
209209
System.out.println(" Description: " + result.getDescription());
210210
System.out.println(" Base analyzer: " + result.getBaseAnalyzerId());
211211
System.out.println(" Fields: " + result.getFieldSchema().getFields().size());
212-
System.out.println(" Knowledge srcs: "
212+
System.out.println(" Knowledge sources: "
213213
+ (result.getKnowledgeSources() == null ? 0 : result.getKnowledgeSources().size()));
214214
// END: com.azure.ai.contentunderstanding.createAnalyzerWithLabels
215215

0 commit comments

Comments
 (0)