langchain/docs/modules
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
..
agents power bi api wrapper integration tests & bug fix (#4983) 2023-05-19 11:25:52 -04:00
callbacks add more color to callbacks docs (#3856) 2023-04-30 19:13:01 -07:00
chains Fixed assumptions misspelling (#4961) 2023-05-19 10:40:04 -04:00
indexes Zep Retriever - Vector Search Over Chat History (#4533) 2023-05-18 16:27:18 -07:00
memory Zep memory (#4898) 2023-05-17 20:01:01 -07:00
models fix: error in gptcache example nb (#4930) 2023-05-18 11:49:45 -07:00
prompts Harrison/prompt constructor methods (#4616) 2023-05-13 09:23:51 -07:00
utils/examples Pass parsed inputs through to tool _run (#4309) 2023-05-08 09:13:05 -07:00
agents.rst Harrison/plan and solve (#4422) 2023-05-09 21:07:56 -07:00
chains.rst big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
indexes.rst Correct typo in documentation for word 'therefore' (#2529) 2023-04-06 23:20:30 -07:00
memory.rst big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
models.rst Harrison/standard llm interface (#4615) 2023-05-13 09:05:31 -07:00
paul_graham_essay.txt Fix notebook example (#3142) 2023-04-19 08:55:06 -07:00
prompts.rst Harrison/prompt constructor methods (#4616) 2023-05-13 09:23:51 -07:00
state_of_the_union.txt Docs refactor (#480) 2023-01-02 08:24:09 -08:00