Skip to content
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

Add OpenAI integration #577

Merged
merged 3 commits into from
Jun 5, 2023
Merged

Add OpenAI integration #577

merged 3 commits into from
Jun 5, 2023

Conversation

asimpson
Copy link
Contributor

This integration adds an additional field in the datasource Config where the user can save their OpenAI API token. Once that token is present the user can use an additional mode of the Editor where they can use natural language to generate KQL queries.

Additional future enhancements could be:

  • Display cost estimate before generating query
  • Give the user the option to include the schema in the prompt to get more personalized results

Examples
openai-adx
openai-adx-advanced

@asimpson asimpson added enhancement New feature or request datasource/ADX changelog PRs to include in the CHANGELOG labels May 24, 2023
@asimpson asimpson requested a review from a team as a code owner May 24, 2023 20:49
@asimpson asimpson requested review from aangelisc and alyssabull May 24, 2023 20:49
@asimpson asimpson force-pushed the simpson-add-openai branch from 7448cd4 to 9a19308 Compare May 24, 2023 20:54
@bossinc bossinc self-requested a review May 24, 2023 21:05
@github-actions
Copy link

Backend code coverage report for PR #577

Plugin Main PR Difference
azuredx 35.3% 31.2% -4.1%

@github-actions
Copy link

Frontend code coverage report for PR #577

Plugin Main PR Difference
src 84.32% 83.85% -.47%

}
}, [schema, stateSchema]);

const generateQuery = () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this make more sense in an effect?

Copy link
Contributor

@aangelisc aangelisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool as hell, straightforward, great stuff 💯

Copy link
Contributor

@alyssabull alyssabull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! Great work 💪

asimpson added 3 commits June 5, 2023 13:46
This integration adds an additional field in the datasource Config where
the user can save their OpenAI API token. Once that token is present the
user can use an additional mode of the Editor where they can use
natural language to generate KQL queries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog PRs to include in the CHANGELOG datasource/ADX enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants