-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Modify Cognitive Search Swagger #3386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Automation for azure-sdk-for-pythonNothing to generate for azure-sdk-for-python |
Automation for azure-sdk-for-goNothing to generate for azure-sdk-for-go |
Automation for azure-sdk-for-rubyNothing to generate for azure-sdk-for-ruby |
Automation for azure-sdk-for-nodeNothing to generate for azure-sdk-for-node |
Automation for azure-sdk-for-javaNothing to generate for azure-sdk-for-java |
| "url": "https://docs.microsoft.com/azure/search/cognitive-search-tutorial-blob" | ||
| }, | ||
| "description": "A list of Cognitive Search skills." | ||
| "description": "A list of cognitive skills." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the right description?
only indexers have datasource, skillset and index names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Synced up with Victor offline on this.
| "context": { | ||
| "type": "string", | ||
| "description": "The context of the skill." | ||
| "description": "Represents the level at which operations take place, such as the document root or document path (for example, document/sentiment or document/content)." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
document root or document content (for example, /document or /document/content)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| "name": { | ||
| "type": "string", | ||
| "description": "The name of the output." | ||
| "description": "The name path of the output." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name of the output defined by the skill.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| "targetName"], | ||
| "description": "output field mapping for a skill." | ||
| "required": [ | ||
| "name", "targetName" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe targetName is optional and defaults to name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| "externalDocs": { | ||
| "url": "https://docs.microsoft.com/rest/api/searchservice/naming-rules" | ||
| }, | ||
| "description": "Output field mapping for a skill." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name of the skill output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Synced up with Victor offline on this. I will need to add the OutputFieldMappings field into the indexer.
| "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-ocr" | ||
| }, | ||
| "description": "The skill extracts text from image files." | ||
| "description": "A skill extracts text from image files." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A skill that extracts text from image files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-image-analysis" | ||
| }, | ||
| "description": "The skill analyzes image files. It extracts a rich set of visual features based on the image content." | ||
| "description": "A skill analyzes image files. It extracts a rich set of visual features based on the image content." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A skill that analyzes image files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-language-detection" | ||
| }, | ||
| "description": "The skill detects the language of input text and reports a single language code for every document submitted on the request. The language code is paired with a score indicating the strength of the analysis." | ||
| "description": "A skill detects the language of input text and reports a single language code for every document submitted on the request. The language code is paired with a score indicating the confidence of the analysis." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"that"
Why is it "every document submitted on the request"? Doesn't this skill take a single string as input?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied it from this link: https://docs.microsoft.com/azure/search/cognitive-search-skill-language-detection. I think we can send a batch request for language detection.
jhendrixMSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's some feedback to be addressed.
|
@vl8163264128 ping |
|
#sign-off |
| }, | ||
| "skillsetName": { | ||
| "type": "string", | ||
| "description": "The name of the cognitive skillset executing with this indexer." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeji1101 It would be helpful to mention here that you can leave this null if you want an indexer without an associated skillset.
| "items": { | ||
| "$ref": "#/definitions/FieldMapping" | ||
| }, | ||
| "description": "Output field mappings are applied after enrichment and immediately before indexing.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeji1101 We don't really define the term "enrichment" here, so maybe it would help to have more context. How about:
"Applicable only to indexers with an associated skillset. Output field mappings are applied after documents are enriched by the skillset, immediately before indexing."
| "$ref": "#/definitions/InputFieldMappingEntry" | ||
| }, | ||
| "description": "The inputs of the skill." | ||
| "description": "Inputs of the skills could be a column in the source data set, or the output of an upstream skill." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeji1101 Terminology consistency: Please call it "data source" instead of "source data set".
| "targetName": { | ||
| "type": "string", | ||
| "description": "The target name of the output." | ||
| "description": "The target name of the output. It is optional and default to name." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeji1101 default to name -> defaults to name
| "required": [ | ||
| "name" | ||
| ], | ||
| "externalDocs": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeji1101 This seems like the wrong doc link.
| "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-sentiment" | ||
| }, | ||
| "description": "Text analytics sentiment analysis." | ||
| "description": "Text analytics positive-negative sentiment analysis, scored as a floating point value in a range of zero to 1." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeji1101 "zero to one" or "0 to 1"
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-versionin the path should match theapi-versionin the spec).Quality of Swagger