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:
hajdul88 2025-03-18 11:17:23 +01:00 committed by GitHub
parent 219b68c6b0
commit 24e0805f50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(