Address all Copilot review comments on PR #68#69
Merged
davida-ps merged 1 commit intopr-67-abutbul-mainfrom Feb 15, 2026
Merged
Conversation
- Fix ChromaDB persist() compatibility: wrap in try/except for 0.4.0+ which auto-persists with persist_directory - Replace fragile error string matching with specific exception types (ImportError, ConnectionError, ValueError, etc.) - Fix register_test decorator to return cls (was returning None) - Fix getter/setter inconsistency: embedding_provider and embedding_model setters now accept empty values matching getter defaults - Fix empty base_url passthrough: empty strings are now stripped from kwargs instead of passed to model constructors - Remove unused client variable assignments in test_chat_clients.py - Reorganize tests: move AppConfig, helper, and TestStatus tests out of test_is_response_list.py into dedicated test files All 93 tests pass. https://claude.ai/code/session_01CDFqeg5QhB4V7yQ3yVVBc9
davida-ps
added a commit
that referenced
this pull request
Feb 15, 2026
* adding support for base_url with ollama and openai. adding embedding adding target temperature for embedding attacks configuration. via file and menu adding skipped test method adding rag poisnoning attack adding package creation dependencies via setup.py (oldschool) adding uv package baseline adding tests * refactored provider and model prompts * Disable bugged telemetry in RAG Poisoning test to prevent PostHog errors open-webui/open-webui#15624 + add dependencies to base package * restored comment * configuration error should also skip * Improve error handling for RAG poisoning attack (these errors should be caught and warned) * Update ps_fuzz/attacks/rag_poisoning.py supress loggers Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update ps_fuzz/attacks/rag_poisoning.py out of scope fail-safe Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update ps_fuzz/test_base.py typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update ps_fuzz/attacks/rag_poisoning.py operator race condition Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update tests/test_chat_clients.py unused Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update tests/test_chat_clients.py redefined in #1 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update tests/test_chat_clients.py unused Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update ps_fuzz/attacks/rag_poisoning.py unused Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix tests, introduce claude.md * Update README.md to include RAG & Vector Database Attacks section and enhance attack options * Add Bandit configuration file and implement poisoned document creation in RAG poisoning attack * Address all Copilot review comments on PR #68 (#69) - Fix ChromaDB persist() compatibility: wrap in try/except for 0.4.0+ which auto-persists with persist_directory - Replace fragile error string matching with specific exception types (ImportError, ConnectionError, ValueError, etc.) - Fix register_test decorator to return cls (was returning None) - Fix getter/setter inconsistency: embedding_provider and embedding_model setters now accept empty values matching getter defaults - Fix empty base_url passthrough: empty strings are now stripped from kwargs instead of passed to model constructors - Remove unused client variable assignments in test_chat_clients.py - Reorganize tests: move AppConfig, helper, and TestStatus tests out of test_is_response_list.py into dedicated test files All 93 tests pass. https://claude.ai/code/session_01CDFqeg5QhB4V7yQ3yVVBc9 Co-authored-by: Claude <noreply@anthropic.com> --------- Co-authored-by: David Abutbul <david@abutbul.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
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.
User description
All 93 tests pass.
https://claude.ai/code/session_01CDFqeg5QhB4V7yQ3yVVBc9
Generated description
Below is a concise technical summary of the changes proposed in this PR:
graph LR setup_poisoned_vector_database_("_setup_poisoned_vector_database"):::modified CHROMADB_("CHROMADB"):::modified run_("run"):::modified HTTP_CLIENT_("HTTP_CLIENT"):::modified ClientLangChain_init_("ClientLangChain.__init__"):::modified OLLAMA_("OLLAMA"):::modified OPENAI_("OPENAI"):::modified setup_poisoned_vector_database_ -- "Calls persist but ignores AttributeError for auto-persist compatibility" --> CHROMADB_ run_ -- "Adds granular exception handling to report setup skips" --> HTTP_CLIENT_ ClientLangChain_init_ -- "Renames ollama_base_url to base_url if non-empty" --> OLLAMA_ ClientLangChain_init_ -- "Renames openai_base_url to base_url if non-empty" --> OPENAI_ classDef added stroke:#15AA7A classDef removed stroke:#CD5270 classDef modified stroke:#EDAC4C linkStyle default stroke:#CBD5E1,font-size:13pxRefines the application's core configuration and error handling logic to improve compatibility with external libraries like ChromaDB and LangChain. Reorganizes the test suite into dedicated modules and fixes several bugs in the attack registry and client parameter handling.
AppConfig,TestStatus, and helper tests fromtest_is_response_list.pyinto dedicated files and cleans up unused variables.Modified files (5)
Latest Contributors(1)
AppConfigsetters handle empty values consistently.Modified files (4)
Latest Contributors(2)