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

power bi api wrapper integration tests & bug fix #4983

Merged
merged 8 commits into from
May 19, 2023
Merged

Conversation

eyurtsev
Copy link
Collaborator

Powerbi API wrapper bug fix + integration tests

  • Bug fix by removing TYPE_CHECKING in in utilities/powerbi.py
  • Added integration test for power bi api in utilities/test_powerbi_api.py
  • Added integration test for power bi agent in agent/test_powerbi_agent.py
  • Edited .env.examples to help set up power bi related environment variables
  • Updated demo notebook with working code in docs../examples/powerbi.ipynb - AzureOpenAI -> ChatOpenAI

Notes:

Chat models (gpt3.5, gpt4) are much more capable than davinci at writing DAX queries, so that is important to getting the agent to work properly. Interestingly, gpt3.5-turbo needed the examples=DEFAULT_FEWSHOT_EXAMPLES to write consistent DAX queries, so gpt4 seems necessary as the smart llm.

Fixes #4325

Before submitting

Azure-core and Azure-identity are necessary dependencies

check integration tests with the following:
pytest tests/integration_tests/utilities/test_powerbi_api.py
pytest tests/integration_tests/agent/test_powerbi_agent.py

You will need a power bi account with a dataset id + table name in order to test. See .env.examples for details.

Who can review?

@hwchase17
@vowelparrot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Power BI Dataset Agent Issue
2 participants