You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/tests/unit_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>
1 year ago
..
agents Add Spark SQL support (#4602) (#4956) 1 year ago
callbacks [Breaking] Refactor Base Tracer(#4549) 1 year ago
chains Callbacks Refactor [base] (#3256) 1 year ago
chat_models Add ChatModel, LLM, and Embeddings for Google's PaLM APIs (#3575) 1 year ago
client Add Support for Flexible Input Format for LLM and Chat Model Runs (#4805) 1 year ago
data Prompt from file proof of concept using plain text (#127) 2 years ago
docstore Add `DocstoreFn` - lookup doc via arbitrary function (#3760) 1 year ago
document_loaders feat #4479: TextLoader auto detect encoding and improved exceptions (#4927) 1 year ago
evaluation Adding an in-context QA evaluation chain + chain of thought reasoning chain for improved accuracy (#2444) 1 year ago
examples feat #4479: TextLoader auto detect encoding and improved exceptions (#4927) 1 year ago
llms Add Invocation Params (#4509) 1 year ago
memory Zep memory (#4898) 1 year ago
output_parsers Harrison/json new line (#4646) 1 year ago
prompts Add from_file method to message prompt template (#4713) 1 year ago
retrievers Zep Retriever - Vector Search Over Chat History (#4533) 1 year ago
tools power bi api wrapper integration tests & bug fix (#4983) 1 year ago
utilities Add Tenant ID to V2 Tracer (#4135) 1 year ago
vectorstores fix #3884 (#3475) 1 year ago
__init__.py initial commit 2 years ago
conftest.py Add pytest --only-extended and --only-core options (#4494) 1 year ago
test_bash.py Skip flaky unit test (#4591) 1 year ago
test_depedencies.py Catch changes to test group (#4802) 1 year ago
test_document_transformers.py Contextual compression retriever (#2915) 1 year ago
test_formatting.py initial commit 2 years ago
test_math_utils.py Contextual compression retriever (#2915) 1 year ago
test_pytest_config.py Block sockets for unit-tests (#4803) 1 year ago
test_python.py option for csv agent to not include df in prompt (#4610) 1 year ago
test_schema.py [simple][test] Added test case for schema.py (#3692) 1 year ago
test_sql_database.py sql: do not hard code the LIMIT clause in the table_info section (#1563) 2 years ago
test_sql_database_schema.py Suppress duckdb warning in unit tests explicitly (#3653) 1 year ago
test_text_splitter.py Add unit test for _merge_splits function (#3513) 1 year ago