feat!: rewrite as v3 monorepo with giskard-core, giskard-agents, and giskard-checks#2229
Merged
feat!: rewrite as v3 monorepo with giskard-core, giskard-agents, and giskard-checks#2229
Conversation
- Remove docs directory and all documentation source files - Remove documentation dependencies from pyproject.toml - Remove serve-docs target from Makefile - Update uv sync command to remove --all-groups flag
…-update-tests-run-condition ci: update test run conditions based on project dependencies
…dd-release-workflow-on-giskard
* Add similarity check * Clean up * Use gemini embedding as default * build: add numpy as explicit dependency to giskard-agents and giskard-checks numpy is used directly in embeddings and semantic similarity checks but was only available as a transitive dependency. Adding it as an explicit dependency ensures it's always available. * refactor(agents): make embedding batch parameters configurable per-call - Remove max_batch_size and max_total_chars from EmbeddingParams - Add support for per-call batch size and total chars parameters - Add environment variable support for default batch limits (GISKARD_AGENTS_DEFAULT_MAX_BATCH_SIZE, GISKARD_AGENTS_DEFAULT_MAX_TOTAL_CHARS) - Update embed() and _embed() methods to accept optional params and batch parameters - Update all tests to use new API * docs(checks): add documentation and docstrings for SemanticSimilarity - Add SemanticSimilarity section to builtin-checks.rst following the same format as other checks (EqualityCheck, StringMatchingCheck, etc.) - Add SemanticSimilarity to quick reference imports in index.rst - Add comprehensive class-level docstring to SemanticSimilarity with Attributes and Examples sections - Add docstrings to get_embeddings method and enhance cosine_similarity function docstring --------- Co-authored-by: Kevin Messiaen <kevin.messiaen@icloud.com> Co-authored-by: Kevin Messiaen <114553769+kevinmessiaen@users.noreply.github.com>
* feature(check): improved equality test * test(equality): added test for equality check * refactor(checks): simplify extraction API and add JSONPath utilities - Replace Extractor ABC pattern with simple resolve() and provided_or_resolve() functions - Remove extraction_check.py in favor of direct JSONPath resolution - Add NotProvided sentinel and utility functions to giskard.core.utils - Update builtin checks (equality, groundedness, string_matching) to use new extraction API - Update tests to reflect simplified extraction interface This change makes JSONPath extraction more accessible as a builtin feature for metadata checks while reducing code complexity. * refactor(checks): extract normalization utilities into shared module - Move normalization logic from string_matching to utils.normalization - Add normalize_string and normalize_data functions for reuse - Update string_matching to use new normalization utilities - Add comprehensive tests for normalization utilities - Add Unicode normalization tests for equality checks * refactor(checks): replace Equality with ComparisonCheck system Replace the Equality check with a more general ComparisonCheck base class that supports multiple comparison operators (equals, greater than, less than, greater than or equal, less than or equal). BREAKING CHANGE: The Equality check has been replaced with Equals and other comparison checks. Import paths have changed from Equality to Equals, and new comparison operators are now available. * feat(checks): add NotEquals comparison check Add NotEquals check class that validates if extracted values do not equal an expected value. The check uses Python's __ne__ method for comparison and follows the same pattern as other comparison checks (Equals, LesserThan, GreaterThan, etc.). - Implement NotEquals class in comparison.py - Register check as 'not_equals' - Add comprehensive test coverage for various types and edge cases - Export NotEquals in builtin and main __init__.py modules * chore: improve check kind naming Co-authored-by: Pierre Le Jeune <pierre@giskard.ai> * feat(checks): support extracting expected values from traces in comparison checks - Add expected_value_key parameter to ComparisonCheck for dynamic extraction - Make expected_value optional when expected_value_key is provided - Add provided_or_resolve utility function for flexible value resolution - Update NotProvided to be a Pydantic BaseModel for better validation - Update tests to reflect new behavior when expected value extraction fails * chore: improve variable clarity --------- Co-authored-by: Pierre Le Jeune <pierre@giskard.ai>
Refresh fluent scenario examples, JSONPath usage, and docstrings to match current API behavior and trace access patterns.
…dd-release-workflow-on-giskard
chore(ci): update CI workflow - separate environment for functional tests requiring external API secrets - updated Makefile and workflow - updated test markers in packages to enable functional testing
…dd-release-workflow-on-giskard
- Remove individual release workflows for giskard-core, giskard-agents, and giskard-checks. - Introduce a unified release workflow that supports version bumping and tagging for all libraries. - The new workflow allows for manual triggering and includes options for version and release types.
* improve workflows * add labeler workflow * drop ci scope * pin action versions
- Adjusted dependency grouping settings to match all package names and update types. - Changed group name and slug to be dynamic based on the manager.
…dd-release-workflow-on-giskard
…dd-release-workflow-on-giskard
feat(ci): add release workflows for giskard libraries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.