mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
06e524416c
# 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 --------- Co-authored-by: aditya-pethe <adityapethe1@gmail.com>
25 lines
991 B
Plaintext
25 lines
991 B
Plaintext
# openai
|
|
# your api key from https://platform.openai.com/account/api-keys
|
|
OPENAI_API_KEY=
|
|
|
|
# pinecone
|
|
# your api key from left menu "API Keys" in https://app.pinecone.io
|
|
PINECONE_API_KEY=your_pinecone_api_key_here
|
|
# your pinecone environment from left menu "API Keys" in https://app.pinecone.io
|
|
PINECONE_ENVIRONMENT=us-west4-gcp
|
|
|
|
|
|
# jira
|
|
# your api token from https://id.atlassian.com/manage-profile/security/api-tokens
|
|
# more details here: https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html
|
|
# JIRA_API_TOKEN=your_jira_api_token_here
|
|
# JIRA_USERNAME=your_jira_username_here
|
|
# JIRA_INSTANCE_URL=your_jira_instance_url_here
|
|
|
|
|
|
# power bi
|
|
# sign in to azure in order to authenticate with DefaultAzureCredentials
|
|
# details here https://learn.microsoft.com/en-us/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet
|
|
POWERBI_DATASET_ID=_powerbi_dataset_id_here
|
|
POWERBI_TABLE_NAME=_test_table_name_here
|
|
POWERBI_NUMROWS=_num_rows_in_your_test_table |