question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Decide how to expose parameters for question and qnaId

See original GitHub issue

@KrzysztofCwalina @tg-msft @schaabs it came up in review that we should move required parameters out of KnowledgebaseQueryOptions and put them as required parameters, which is either string question or int qnaId. Agreed? How does that differ from EncryptParameters for Key Vault, though?

Also, since not all languages support overloads, I propose adding just a GetQuestionAnswer(string projectName, int qnaId, string deploymentName = null). when a qnaId is passed, it’s the only option that matters.

/cc @annatisch @rokulka

_Originally posted by @heaths in https://github.com/Azure/azure-sdk-for-net/pull/21810#discussion_r664912422_

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
johanstecommented, Jul 12, 2021

Gut reaction, I think the overloads look good. Let’s try them out!

1reaction
heathscommented, Jul 7, 2021

@annatisch or @johanste could you summarize what you’re thinking for Python? For .NET, I’m leaning toward:

Response<KnowledgebaseAnswers> QueryKnowledgebase(
  string projectName,
  string question,
  QueryKnowledgebaseOptions options = default,
  CancellationToken cancellationToken = default);

Response<KnowledgebaseAnswers> GetQuestionAnswers(
  string projectName,
  int qnaId,
  CancellationToken cancellationToken = default);

/cc @tg-msft @KrzysztofCwalina @rokulka

Read more comments on GitHub >

github_iconTop Results From Across the Web

QnA Maker - Active Learning suggested questions
In order to see the suggested questions, on the Edit knowledge base page, select View Options, then select Show active learning suggestions.
Read more >
Multi-turn conversations - QnA Maker - Azure AI services
Use prompts and context to manage the multiple turns, known as multi-turn, for your bot from one question to another. Multi-turn is the ......
Read more >
How to query the knowledgebase using the QnaId
I think the proper way to do this is to build the qnaState from the answer, grab the text from the prompt, and...
Read more >
Azure Cognitive Language Services Question Answering ...
The Azure.AI.Language.QuestionAnswering client library provides both synchronous and asynchronous APIs. The following examples show common scenarios using the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found