Closed sfahad1414 closed 3 months ago
The recent updates primarily revolve around improving the validation of database actions, refining vector database operations, and enhancing test cases. Key changes include refining the payload structure validation in file_validator.py
, removing specific threshold parameters in vector database operations and corresponding tests, and updating validation criteria and error handling in test cases.
Files | Summary of Changes |
---|---|
.../file_validator.py |
Updated __validate_database_actions to iterate and validate payload structure. |
.../qdrant.py |
Removed assignment of request['score_threshold'] to 0.70 under certain conditions in perform_operation . |
tests/.../action_service_test.py , tests/.../qdrant_test.py |
Removed 'score_threshold': 0.7 parameter from several test cases. |
tests/.../validation_action_data.json |
Modified JSON structure to include payload with query_type and value fields. |
tests/.../training_data_validator_test.py |
Updated test assertions for error_summary['database_actions'] , changing expected length and adding specific error checks. |
Amidst the code, the changes flow,
Validators check as engines grow,
Thresholds fall, the payloads rise,
In tests and scripts, precision lies.
With every line, a clearer way,
Our code aligns, anew each day.
🌟 Keep coding bright, in QA's light! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Bug Fixes
Tests