feat: improve error handling with custom exceptions and troubleshooting guide#64
Open
knqiufan wants to merge 3 commits intooceanbase:mainfrom
Open
feat: improve error handling with custom exceptions and troubleshooting guide#64knqiufan wants to merge 3 commits intooceanbase:mainfrom
knqiufan wants to merge 3 commits intooceanbase:mainfrom
Conversation
…nd improve SQL syntax in checkpointer.py for clarity and consistency
…g in OceanBase integration - Introduced a comprehensive troubleshooting section in README.md covering common connection issues, vector dimension mismatches, index creation failures, and AI function support. - Enhanced error handling in the OceanBase integration by replacing generic ValueErrors with specific OceanBase exceptions for better clarity and debugging. - Updated exception handling in the OceanBaseCheckpointSaver and OceanbaseVectorStore classes to provide more informative error messages.
5 tasks
Contributor
|
@knqiufan Thank you for your contribution. Can you resolve the PR conflict |
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.
Summary
This PR enhances error handling across the langchain-oceanbase project by introducing a custom exception hierarchy and adding actionable troubleshooting hints to help users diagnose and resolve issues quickly.
close #45
Dependencies
Changes
1. Custom exception hierarchy (
langchain_oceanbase/exceptions.py)OceanBaseError- Base exceptionOceanBaseConnectionError- Connection failures with host/port infoOceanBaseVectorDimensionError- Dimension mismatch with expected/actual valuesOceanBaseIndexError- Index operation failuresOceanBaseVersionError- Version compatibility issuesOceanBaseConfigurationError- Invalid configuration with valid values hint2. Improved error messages in:
vectorstores.py- Parameter validation, feature enablement hintsai_functions.py- Version requirements, model configuration hintscheckpointer.py- Connection error handling3. Troubleshooting section in README.md
4. Unit tests (
tests/unit_tests/test_exceptions.py)