create/fix tests and bugs #101
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and bug fixes across the codebase, with a focus on enhancing unit test coverage, fixing minor bugs, and updating some API behaviors for clarity and correctness. The most significant changes include the addition of new unit tests for core AI components, refactoring for more accurate API responses, and minor corrections to constant definitions and logic.
Testing improvements:
BaseBatchAsync,BaseChat, and AI-related classes (LLMCallback,VectorData) to ensure correct initialization, callback handling, and async behavior. These tests increase coverage and help catch regressions early. [1] [2] [3]Bug fixes and API improvements:
add_df_to_modelinmatch_entity_records/api.pyby ensuring the dataframe name is correctly converted to a string, preventing type errors.get_attributesandremove_attributesindetect_entity_networks/api.pyto use the correct Polars DataFrame API (schemainstead ofcolumns, andto_list()instead oftolist()), ensuring compatibility and correctness.query_rewriter.pyto more robustly filter out the"dummynode"from concepts, improving query accuracy.test_history_elementstoparse_history_elementsinquery_text_data/helper_functions.pyfor clarity, and updated all usages inrelevance_assessor.pyto match. [1] [2] [3] [4] [5]Constants and configuration:
PDF_MARGIN_INCHEStohelpers/constants.pyfor better PDF generation control.Build and CI configuration:
.vsts-ci.ymlto streamline the CI pipeline.