chore: deletes error log when there is no collection. Using dynamic c… (#651)
…ollection handling its not an error <!-- .github/pull_request_template.md --> ## Description Deletes error logging from ChromaDB adapter ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Updated internal error handling to ensure more consistent responses during unforeseen issues. This change streamlines the system’s approach to managing errors, reducing unnecessary internal error logs while maintaining reliable operations and a stable user experience. These refinements contribute to improved system stability and efficient error management. Internal operations are now better optimized to handle unexpected scenarios gracefully. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
parent
219b68c6b0
commit
24e0805f50
1 changed files with 1 additions and 2 deletions
|
|
@ -222,8 +222,7 @@ class ChromaDBAdapter(VectorDBInterface):
|
|||
)
|
||||
|
||||
return scored_results
|
||||
except Exception as e:
|
||||
logger.error(f"Error in get_distance_from_collection_elements: {str(e)}")
|
||||
except Exception:
|
||||
return []
|
||||
|
||||
async def search(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue