You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/cognitive-search-working-with-skillsets.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ For the rest of this document, we will assume we are working with [hotel reviews
52
52
Each skill requires a context. A context determines:
53
53
+ The number of times the skill executes, based on the nodes selected. For context values of type collection, adding an ```/*``` at the end will result in the skill being invoked once for each instance in the collection.
54
54
+ Where in the enrichment tree the skill outputs are added. Outputs are always added to the tree as children of the context node.
55
-
+ Shape of the inputs. For multi level collections, setting the context to the parent collection will affect the shape of the input the skill. For example if you have an enrichment tree with a list of countries, each enriched with a list of states containing a list of zipcodes.
55
+
+ Shape of the inputs. For multi level collections, setting the context to the parent collection will affect the shape of the input for the skill. For example if you have an enrichment tree with a list of countries, each enriched with a list of states containing a list of zipcodes.
56
56
57
57
|Context|Input|Shape of Input|Skill Invocation|
58
58
|---|---|---|---|
@@ -61,7 +61,7 @@ Each skill requires a context. A context determines:
61
61
62
62
### SourceContext
63
63
64
-
The `sourceContext` is only used in skill inputs and [projections](knowledge-store-projection-overview.md). It is used to construct multi-level, nested objects. You may need to create a new oject to either pass it as an input to a skill or project into the knowledge store. As enrichment nodes may not be a valid JSON object in the enrichment tree and refrencing an node in the tree only returns that state of the node when it was created, using the enrichments as skill inputs or projections requires you to create a well formed JSON object. The `sourceContext` enables you to construct a hierarchical, anonymous type object, which would require multiple skills if you were only using the context. Using `sourceContext` is shown in the next section. Look at the skill output that generated an enrichment to determine if it is a valid JSON object and not a primitive type.
64
+
The `sourceContext` is only used in skill inputs and [projections](knowledge-store-projection-overview.md). It is used to construct multi-level, nested objects. You may need to create a new object to either pass it as an input to a skill or project into the knowledge store. As enrichment nodes may not be a valid JSON object in the enrichment tree and referencing a node in the tree only returns that state of the node when it was created, using the enrichments as skill inputs or projections requires you to create a well formed JSON object. The `sourceContext` enables you to construct a hierarchical, anonymous type object, which would require multiple skills if you were only using the context. Using `sourceContext` is shown in the next section. Look at the skill output that generated an enrichment to determine if it is a valid JSON object and not a primitive type.
65
65
66
66
### Projections
67
67
@@ -111,7 +111,7 @@ The colors of the connectors in the tree above indicate that the enrichments wer
111
111
112
112
## Save enrichments in a knowledge store
113
113
114
-
Skillsets also define a knowledge store where your enriched documents can be projected as tables or objects. To save your enriched data in the knowledge store, you define a set of projections of your enriched document. To learn more about the knowledge store see [knowledge store overview](knowledge-store-concept-intro.md)
114
+
Skillsets also define a knowledge store where your enriched documents can be projected as tables or objects. To save your enriched data in the knowledge store, you define a set of projections for your enriched document. To learn more about the knowledge store see [knowledge store overview](knowledge-store-concept-intro.md)
0 commit comments