Code Monkey home page Code Monkey logo

srsummary's Introduction

Step 1. Consider following sample KQL to extract required information from SRs

let Delimiter = '||:||';
let EndOfLine = '|:EOL:|';
AllCloudsSupportIncidentWithReferenceModelJitVNext
| limit 10
| extend outputCSV = strcat(IncidentId, Delimiter, Title, Delimiter, IssueDescription, Delimiter, Symptomstxt, EndOfLine)
| project outputCSV

Step 2. Save the exported value [outputCSV] into local file (ex: input-sample.csv).

Ensure the format of each record is concat properly with specified "Delimiter" and "EndOfLine". If there exist header of columns in the file, please specify {FileInputwithHeader : True} in the following step.

IncidentId||:||Title||:||IssueDescription||:||Symptomstxt|:EOL:|
1234567890123456||:||This is a sample title||:||encounter 408 in Cosmos DB||:||customer encountered 408|:EOL:|

Step 3. Configure program parameters accordingly

Please ensure the value of "Delimiter" and "EndOfLine" parameters are aligned with Step 1 you used.

{
  "FilePath": "C:\\temp\\",
  "FileInputwithHeader": true,
  "FileInput": "input-sample.csv",
  "FileOutput": "output-sample.json",
  "Delimiter": "||:||",
  "EndOfLine": "|:EOL:|",
  "OpenAIEndpoint": "https://<EndPoint>.openai.azure.com",
  "OpenAIKey": "AccessKey",
  "OpenAIDeployname": "DeploymentName",
  "CompletionDelayMs": 3000 //preventing 429 - https://learn.microsoft.com/en-us/azure/ai-services/openai/quotas-limits
}

Step 4. Customize prompt question to GPT based on your team requirements

Sample

Considering the following described context is mainly a problem that happened in Microsoft Azure Cosmos DB and associated services, so most all terms, technology should be correlated and refer to Azure Services.
If there is any Errors or Status Code in the following context, please reference to Cosmos DB HTTP Status code (https://learn.microsoft.com/en-us/rest/api/cosmos-db/http-status-codes-for-cosmosdb) to interpret issue.
The "Issue Title" is '''replaceWithTitle''' and "Issue Description" provided by customer is following text '''replaceWithIssueDescription'''
And the support engineer determined the "Symptom" is following text '''replaceWithSymptomstxt'''
DO NOT refer to any information in the following summary include: "Database name", "Collection name" from both "Issue Description" and "Symptom".
Remove any unknown part from summary.
Please provide a straightforward summary to better describe the issue from given "Issue Description" and the "Symptom" above; ensure removing any personal contact information like name, email address, contact phone number AND account name, database name, container name to protect PRIVACY.
The output Summary MUST use a first-person angle to describe the issue.

Reference & Demo

input-sample.csv
output-sample.json
Sample

srsummary's People

Contributors

chshihmsft avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.