10000 Tags · Napuh/guardrails · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: Napuh/guardrails

Tags

v0.2.4

Toggle v0.2.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
bump version (guardrails-ai#363)

v0.2.4-alpha1

Toggle v0.2.4-alpha1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
0.2.4-alpha1 pre release (guardrails-ai#357)

v0.2.3

Toggle v0.2.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update version.py (guardrails-ai#347)

v0.2.3-alpha1

Toggle v0.2.3-alpha1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
match on gr. instead of gr (guardrails-ai#341)

* match on gr. instead of gr

* unit tests for gr prefix

v0.2.2

Toggle v0.2.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
bump v to 0.2.2 (guardrails-ai#330)

v0.2.1

Toggle v0.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update version.py (guardrails-ai#323)

v0.2.1-alpha.0

Toggle v0.2.1-alpha.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
bump version (guardrails-ai#304)

v0.2.0

Toggle v0.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Dev (guardrails-ai#299)

* Validators refactor (guardrails-ai#214)

* Pass metadata through guard, runner, to validator

* Validator: Change interface

- EventDetail => ValidationResult
- (key, value, schema) => (value, metadata)

* validators.Pydantic: New interface

* validators.PydanticFieldValidator: New interface

* validators: New interface for simple validators

* validators: New interface for SQL-related validators

* validators.Choice: New interface (pass schema through metadata)

* validators.SimilarToDocument: New interface

* validators.IsProfanityFree: New interface

* validators.IsHighQualityTranslation: New interface

* validators.EndsWith: New interface

* validators.ExtractedSummarySentencesMatch: New interface

* validators.ReadingTime: New interface

* validators.ExtractiveSummary: New interface

* validators.RemoveRedundantSentences: New interface

* validators.SaliencyCheck: New interface

* validators.QARelevanceLLMEval: New interface

* format

* Fix tests

* validators.Extracted*: Change behavior, add test

* validation.md: Hide Choice validator from docs

* Avoid reassigning value when no validation occurs

This is a bug in the main branch, which will be dealt with in a separate PR

* ValidationResult.outcome: Fix literals

* test_validators.test_summary_validators: Mock the embedding tests

* bump version to v0.2.0-alpha.1

* Abstract validator running into ValidatorService (guardrails-ai#228)

* Crudely move field validation from datatypes/validators to ValidatorService

* datatypes: validate => collect_validation

* Remove unused params from collect_validation method signature, adjust logs

* Remove Choice validator (handled by skeleton reask)

* Fix embedding test import

* Implement AsyncValidatorService, that runs multiprocess

when guard is invoked asynchronously

* test_async: Test multiprocessing

* validator_service: Parallelize synchronous guard

* format

* test_guard: Test synchronous invocation multiprocessing

* Run validators on the same field in parallel when possible

* fixup tests

* format

* Add test for parallel validation on same field

* Support calling chat models with chat history instead of single user message and instructions (guardrails-ai#234)

* Pass basemodel to sync and async runner calls (guardrails-ai#221)

* Pass basemodel to sync and async runner calls

* remove model filters from using functions

* json_utils: Handle value type error on skeleton check (guardrails-ai#225)

* [bug] support setting reasking instructions (guardrails-ai#199)

* add reask instructions

* basic reasking instructions

* schema: Remove templating functionality from instructions

* Fix reask prompt compilation test

* [minor] Fix rail tests

* schema.get_reask_schema_and_prompt => get_reask_setup

* Remove examples from json reask prompt (they are in instructions)

* openai_completion_create: Add note on ignored instructions kwarg

* test_python_rail: Adjust used constants to remove examples from prompt

* constants: high_level_instructions => high_level_json_instructions

* StringSchema: Set reask instructions to something basic

* format

---------

Co-authored-by: Rafael Irgolic <hello@irgolic.com>

* make prompts optional in rail spec (guardrails-ai#110)

* make prompts and instructions optional

* lint

* enable sending chat history with guard call

* fixing tests pt 1

* fixing tests pt 2

* fix tests

* uncomment tests

* remove temp files

---------

Co-authored-by: rafael <hello@irgolic.com>

* increment version

* Add support and docs for cohere models (guardrails-ai#237)

* Add support and docs for cohere models

* fix tests

* fix list type

* fixing list imports

* fix tests for missing dependencies

* fix tests

* fix tests

* fix bug where instructions are generated during reasking for completion models (guardrails-ai#239)

* Bug fixes in validator service (guardrails-ai#243)

* fix fn calling

* functional tests with fixes in validator service

* lint

* add integration tests for string and pydantic with message history

* autoformat

---------

Co-authored-by: Caleb Courier <caleb.courier@gmail.com>

* Create schema-wise reask instructions (guardrails-ai#245)

* changes for setting and viewing custom reask templates

* lint

* version bump (guardrails-ai#246)

* init commit for string formatting changes

* add formatting for instructions and prompt also

* remove comments

* Shreya/metadata bug fix (guardrails-ai#259)

* bug fix

* fix tests

* add provenance validators (guardrails-ai#258)

* Add provenance validators

* fix prov v0 validator

* cleanup

---------

Co-authored-by: zsimjee <zaydsimjee@gmail.com>

* version bump (guardrails-ai#262)

* linting fixes

* bug fixes and autoformat

* update import

* update examples

* allow passing api key as kwarg

* lint fix

* add api_base arg to embedding

* lint fixes

* change var name

* bump version

* version bump

* updaate tests

* lint fix

* fix lint

* lint fix

* fix merge conflicts

* updates for tests

* update for passing unit tests and updates to examples

* fix lint

* add namespace changes for constants

* lint fix

* update last test

* move out namespace template

* lint

* casting GUARDRAILS_PROCESS_COUNT to int

* Remove `register_pydantic` and `script` tag (guardrails-ai#280)

* Remove `register_pydantic` decorator

With failing test for nested pydantic validators

* Remove script tag

* Rewrite register_pydantic test into new Guard.from_pydantic

* Remove script docs

* Remove old pydantic docs

* Remove unused imports (and format)

* Docs: Validators refactor (guardrails-ai#269)

* start validators concept doc

* finish validators content, sample google style docstring

* mkdocs options

* finish validator doc strings for key props and args, need to double check metadata

* finish docs on metadata, separate validators and responses

* autoformat

* ignore line length on docstring

* extra spaces

* and -> an

* update string formatting

* update rail and outputs

* fix prompt variables, escape prompt for langchain

* update syntaxin docs, update constants in docstrings

* lint fix

* update syntax in notebook

* fix syntax

* String schema (guardrails-ai#279)

* add requirements.txt for setup

* python native string schema

* autoformat

* lint fixes

* descrition -> description

* lint fix

* update Rail classmethod name

* JsonSchema.async_validate: Correctly instantiate SkeletonReask (guardrails-ai#284)

* Test Reasks w/ Message History (guardrails-ai#247)

* add reasks to message history tests

* autoformat

* == None -> is None

* Choice discriminator change (guardrails-ai#241)

* Generate choice discriminator inside union instead of outside

* Remove 'when' syntax from choice

* test_schema_to_prompt: Dont test for choice transpilation

* format

* json_utils: Change verification_failed sentinel value from staticmethod to class

* select_choice_based_on_action: Update for discriminator change

* update outputs

* update test

* Full schema reask (guardrails-ai#248)

* Generate choice discriminator inside union instead of outside

* Remove 'when' syntax from choice

* test_schema_to_prompt: Dont test for choice transpilation

* format

* json_utils: Change verification_failed sentinel value from staticmethod to class

* format

* convert_pydantic_model_to_openai_fn: Drop extra fields

* Implement full_schema_reask option in guard

If using pydantic defaults to True, otherwise False

* test_pydantic: Use full_schema_reask=False

* guard: Fill out docstrings for __call__ and parse

* run: Fail early on missing required metadata keys (guardrails-ai#272)

* prepend instructions to prompt (guardrails-ai#281)

* prepend instructions to prompt

* lint, ignore venv

---------

Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>

* Validators as functions (guardrails-ai#249)

* validators: Allow functions as validators

* test functions as validators

* test incorrect function validator

* pydantic_utils: Validators are either classes or (validator, on_fail) tuples

* pydantic_utils: Pydantic validators are reask validators

* tests...pydantic_models: Change validator declarations to tuples

* test_validators: Test tuple validator specifications

* test_pydantic_utils: Fix test to access tuple

* Fix kwargs issue while initialising Provenance validator (guardrails-ai#288)

* Fix kwargs issue while initialising Provenance validator

* Add formatting

* Caleb/test cov (guardrails-ai#293)

* add reasks to message history tests

* autoformat

* == None -> is None

* start validator service unit tests

* validate tests

* start async validator unit tests

* more tests

* start more tests

* more assertions

* another test

* fix tests

* lint fixes

* 0.2.0 Migration Guide (guardrails-ai#291)

* start migration guide

* Outline

* string format

* 0-2-migration: Add pydantic instructions

* 0-2-migration: Add choice change

* langchain and string format

* add regex

* format

* tab formatting

* indentation

* remove redundant section

* validator updates

---------

Co-authored-by: Rafael Irgolic <hello@irgolic.com>

* Document field validation logs access (guardrails-ai#286)

* docs.logs: Add pointer to how to print logs

* logs_utils: Refactor from dataclasses to pydantic

* docs.logs: Simplify field validation logs access

* Xml/Pydantic docs parity (guardrails-ai#292)

* chat models

* still not working

* select choice

* extracting entities

* bug free python plus bug fixes

* no secrets example

* valid sql and bug fix

* vegan mac and cheese

* trailing comma

* valid chess move

* translation

* structured data

* translation quality

* remove script fix bug

* lint fix

* test coverage

* merge cleanup branch

* notebook updates

* tweak prompt, remove interest_rates property

* restructure files (guardrails-ai#271)

* start validators concept doc

* finish validators content, sample google style docstring

* mkdocs options

* finish validator doc strings for key props and args, need to double check metadata

* restructure files

* finish docs on metadata, separate validators and responses

* autoformat

* ignore line length on docstring

* extra spaces

* and -> an

* restructure leftnav WIP

* install from gh, API ref

* Add diag to guard

* more guard skeleton

* pydantic v1

* string schema

* backoff/tenacity docs

* last few tweaks

* lint fix

* fix mkdocs.yml merge

* copy intro as index page for now

* document __call__ vs parse

* or -> at

* formatting

* format tabs

* re-add migration guide, remove pydantic

* fix string notation

* Create examples_check.yml

---------

Co-authored-by: Caleb Courier <caleb.courier@gmail.com>

* Num reask default (guardrails-ai#295)

* fix num_reasks defaulting

* remove TODO

* update rail string

* Pass reask instructions for parsing (guardrails-ai#296)

* added custom reask instructions

* fix tests

* Docs restructure (guardrails-ai#298)

* start validators concept doc

* finish validators content, sample google style docstring

* mkdocs options

* finish validator doc strings for key props and args, need to double check metadata

* restructure files

* finish docs on metadata, separate validators and responses

* autoformat

* ignore line length on docstring

* extra spaces

* and -> an

* restructure leftnav WIP

* install from gh, API ref

* Add diag to guard

* more guard skeleton

* pydantic v1

* string schema

* backoff/tenacity docs

* last few tweaks

* lint fix

* fix mkdocs.yml merge

* copy intro as index page for now

* document __call__ vs parse

* or -> at

* formatting

* format tabs

* re-add migration guide, remove pydantic

* fix string notation

* Create examples_check.yml

* tuple pydantic examples

* add coverage for openai embeddings model selector

* relocate embeddigns tests to the correct area

* lint

---------

Co-authored-by: Caleb Courier <caleb.courier@gmail.com>

* 0.2.0 version bump

* lint version file

* coverage

* reask utils tests

* lint fixes

* json utils tests

* lint fixes

---------

Co-authored-by: rafael <hello@irgolic.com>
Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
Co-authored-by: Caleb Courier <caleb.courier@gmail.com>
Co-authored-by: Nefertiti  Rogers <nefertitirogers@Nefertitis-MacBook-Pro.local>
Co-authored-by: Nefertiti Rogers <nefertitirogers@gmail.com>
Co-authored-by: Caleb Courier <13314870+CalebCourier@users.noreply.github.com>
Co-authored-by: Dmitry Matasov <dmatasov@bestplace.pro>
Co-authored-by: Karan Acharya <thekaranacharya@gmail.com>

v0.1.9

Toggle v0.1.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
bump version (guardrails-ai#278)

v0.2.0-alpha.6

Toggle v0.2.0-alpha.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request guardrails-ai#268 from ShreyaR/version-bump-0.2.0-…

…alpha.6

version bump
0