langchain/docs/modules/agents/toolkits/examples
Eugene Yurtsev 06e524416c
power bi api wrapper integration tests & bug fix (#4983)
# 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>
2023-05-19 11:25:52 -04:00
..
csv.ipynb Fix: Typo in Docs (#4179) 2023-05-05 08:35:49 -07:00
gmail.ipynb Pass parsed inputs through to tool _run (#4309) 2023-05-08 09:13:05 -07:00
jira.ipynb Harrison/output error (#3094) 2023-04-18 08:59:56 -07:00
json.ipynb requests wrapper (#2367) 2023-04-03 21:57:19 -07:00
openai_openapi.yml
openapi_nla.ipynb Harrison/docs cleanup (#2633) 2023-04-09 12:55:22 -07:00
openapi.ipynb Harrison/output error (#3094) 2023-04-18 08:59:56 -07:00
pandas.ipynb Fix: Typo in Docs (#4179) 2023-05-05 08:35:49 -07:00
playwright.ipynb Add Structure Chat Agent (#3912) 2023-05-01 20:34:50 -07:00
powerbi.ipynb power bi api wrapper integration tests & bug fix (#4983) 2023-05-19 11:25:52 -04:00
python.ipynb Harrison/spark connect example (#4659) 2023-05-13 21:44:54 -07:00
spark_sql.ipynb Add Spark SQL support (#4602) (#4956) 2023-05-18 20:53:08 -07:00
spark.ipynb [nit] Simplify Spark Creation Validation Check A Little Bit (#4761) 2023-05-18 18:57:54 -07:00
sql_database.ipynb
titanic.csv
vectorstore.ipynb