Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.46k stars 4.8k forks source link

Archboard feedback for Question Answering #24915

Closed heaths closed 2 years ago

heaths commented 3 years ago

Investigate:

After discussion since these are both input models and how they are used only for serializing, it's okay to leave as-is.

heaths commented 3 years ago

Updated with changes from subsequent discussions.

heaths commented 3 years ago

@annatisch went through the list of property name renames and came up with this for python:

AnswerSpan.confidence_score -> AnswerSpan.confidence
AnswerSpanRequest.confidence_score_threshold -> ShortAnswerOptions.confidence_threshold
AnswerSpanRequest.top_answers_with_span -> ShortAnswerOptions.top
KnowledgeBaseAnswer.answer_span -> KnowledgeBaseAnswer.short_answer
KnowledgeBaseAnswer.id -> KnowledgeBaseAnswer.qna_id
KnowledgeBaseAnswer.confidence_score -> KnowledgeBaseAnswer.confidence
KnowledgeBaseAnswerRequestContext.previous_user_query -> KnowledgeBaseAnswerContext.previous_question
QueryKnowledgeBaseOptions.confidence_score_threshold -> AnswersOptions.confidence_threshold
QueryKnowledgeBaseOptions.answer_span_request -> AnswersOptions.short_answer_options
QueryKnowledgeBaseOptions.ranker_type -> AnswersOptions.ranker_kind
QueryTextOptions.records -> AnswersFromTextOptions.text_documents
TextAnswer.confidence_score -> TextAnswer.confidence
TextAnswer.answer_span -> TextAnswer.short_answer
heaths commented 3 years ago

Per discussion with @KrzysztofCwalina and @tg-msft I'll just move all models to the root via transform. If we add authoring to the same package (likely, given it's much smaller than Search) we can add the client and models - with their own .Models namespace - to a separate authoring namespace like we did for Search.