Aurora Maria Tumminello

Results 11 comments of Aurora Maria Tumminello

Here's the code to reproduce the Validation error: ```python # Function to deploy a project def create_project(endpoint, key, name, description, sources): # Create an Authoring client client = AuthoringClient(endpoint, AzureKeyCredential(key))...

@kristapratico your example works for me, but I should add as source the content of a .txt inside the blob storage. According to your example, the file should be reached...

@kristapratico thank you for your suggestions, I'll try with the blob one. May I ask you for some suggestions on how to request the SAS token for each file in...

@kristapratico if I try to provide a PDF as input with the following code: ```python filename = "dev/file.pdf" sources = [{ "op": "add", "value": { "displayName": "Example document", "sourceUri": "https://{storage}.blob.core.windows.net/{container}/{filename}?sp=r&st=2023-01-10T12:47:09Z&se=2023-01-10T20:47:09Z&spr=https&sv=2021-06-08&sr=b&sig={sas}".format(storage=storage,...

>By automatically do you mean programmatically? You can use the [azure-storage-blob](https://pypi.org/project/azure-storage-blob/) client library to generate a SAS token for the blob, here are the docs: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-storage-blob/12.14.1/azure.storage.blob.html#azure.storage.blob.generate_blob_sas Yes, that's what I...

Update: I've tried with a pdf document and after removing `deployment = deployment_poller.result()` it seems to deploy the project correctly. I can see it and test it through Language Studio,...

>Can you provide a list of the valid source formats for QA? @kristapratico @akhator01 According to [Knowledge Bases Limits](https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/question-answering/concepts/limits#knowledge-base-content-limits), the supported formats should be ".tsv", ".pdf", ".txt", ".docx", ".xlsx", but...

@kristapratico I was wondering if it is possible to get the start and end offset of the answer, just to know where the answer has been found with numerical indexes...

@Mukundahsd Thank you for the answers, it clear now. I was wondering if it is possibile to provide alternate questions when making a request, as suggested by [your article](https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/question-answering/concepts/best-practices#when-should-you-add-alternate-questions-to-question-and-answer-pairs). Moreover,...

@kristapratico @Mukundahsd I've tried again with .txt, this time with your UI on Language Studio, but I get this error: ``` BadArgument Failed to extract QnAs from the source -...