langchain/tests/integration_tests
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
..
agent power bi api wrapper integration tests & bug fix (#4983) 2023-05-19 11:25:52 -04:00
cache Optimize the initialization method of GPTCache (#4522) 2023-05-11 16:15:23 -07:00
callbacks add tracing v2 env var (#4465) 2023-05-10 11:08:29 -07:00
chains Callbacks Refactor [base] (#3256) 2023-04-30 11:14:09 -07:00
chat_models add alias for model (#4553) 2023-05-18 09:12:23 -07:00
document_loaders Add html parsers (#4874) 2023-05-17 22:39:11 -04:00
embeddings Dev2049/hf emb encode kwargs (#3925) 2023-05-01 20:27:41 -07:00
examples fix(document_loaders/telegram): fix pandas calls + add tests (#4806) 2023-05-16 14:35:25 -07:00
llms add alias for model (#4553) 2023-05-18 09:12:23 -07:00
memory Cassandra support for chat history (#4378) (#4764) 2023-05-15 23:43:09 -07:00
prompts Cleanup integration test dir (#3308) 2023-04-21 09:44:09 -07:00
retrievers Remove unnecessary comment (#4845) 2023-05-17 11:53:03 -04:00
utilities power bi api wrapper integration tests & bug fix (#4983) 2023-05-19 11:25:52 -04:00
vectorstores Update redis integration tests (#4937) 2023-05-18 10:22:17 -07:00
__init__.py
.env.example power bi api wrapper integration tests & bug fix (#4983) 2023-05-19 11:25:52 -04:00
conftest.py
test_document_transformers.py Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
test_nlp_text_splitters.py
test_pdf_pagesplitter.py
test_schema.py Callbacks Refactor [base] (#3256) 2023-04-30 11:14:09 -07:00
test_text_splitter.py Fix TextSplitter.from_tiktoken(#4361) 2023-05-08 16:36:38 -07:00