microsoft / autogen

A programming framework for agentic AI 🤖
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
31.36k stars 4.57k forks source link

feat: Qdrant support for the VectorDB interface #3035

Closed Anush008 closed 2 months ago

Anush008 commented 3 months ago

Description

Adds a Qdrant - https://qdrant.tech/ based implementation for the VectorDB interface.

Checks

codecov-commenter commented 2 months ago

Codecov Report

Attention: Patch coverage is 0% with 104 lines in your changes missing coverage. Please review.

Project coverage is 23.18%. Comparing base (6279247) to head (8e78d2f). Report is 17 commits behind head on main.

Files Patch % Lines
autogen/agentchat/contrib/vectordb/qdrant.py 0.00% 99 Missing and 2 partials :warning:
autogen/agentchat/contrib/vectordb/base.py 0.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3035 +/- ## ========================================== - Coverage 32.90% 23.18% -9.72% ========================================== Files 94 96 +2 Lines 10235 10531 +296 Branches 2193 2415 +222 ========================================== - Hits 3368 2442 -926 - Misses 6580 7830 +1250 + Partials 287 259 -28 ``` | [Flag](https://app.codecov.io/gh/microsoft/autogen/pull/3035/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | Coverage Δ | | |---|---|---| | [unittest](https://app.codecov.io/gh/microsoft/autogen/pull/3035/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `12.15% <0.00%> (?)` | | | [unittests](https://app.codecov.io/gh/microsoft/autogen/pull/3035/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `22.41% <0.00%> (-10.49%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

gitguardian[bot] commented 2 months ago

⚠️ GitGuardian has uncovered 8 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

Since your pull request originates from a forked repository, GitGuardian is not able to associate the secrets uncovered with secret incidents on your GitGuardian dashboard. Skipping this check run and merging your pull request will create secret incidents on your GitGuardian dashboard.

🔎 Detected hardcoded secrets in your pull request
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | | | -------------- | ------------------ | ------------------------------ | ---------------- | --------------- | -------------------- | | [12853598](https://dashboard.gitguardian.com/workspace/221093/incidents/12853598) | Triggered | Generic High Entropy Secret | 8e78d2ff6656b870fb2f101b5e05e06c3d0677f2 | test/oai/test_utils.py | [View secret](https://github.com/microsoft/autogen/commit/8e78d2ff6656b870fb2f101b5e05e06c3d0677f2#diff-2b09b6217977ded4ac2ee89b1c14011dbae9e0ec71716b00f85364a27b64fe09L428) | | [10404693](https://dashboard.gitguardian.com/workspace/221093/incidents/10404693) | Triggered | Generic High Entropy Secret | 8e78d2ff6656b870fb2f101b5e05e06c3d0677f2 | test/oai/test_utils.py | [View secret](https://github.com/microsoft/autogen/commit/8e78d2ff6656b870fb2f101b5e05e06c3d0677f2#diff-2b09b6217977ded4ac2ee89b1c14011dbae9e0ec71716b00f85364a27b64fe09R425) | | [12853599](https://dashboard.gitguardian.com/workspace/221093/incidents/12853599) | Triggered | Generic High Entropy Secret | 8e78d2ff6656b870fb2f101b5e05e06c3d0677f2 | test/oai/test_utils.py | [View secret](https://github.com/microsoft/autogen/commit/8e78d2ff6656b870fb2f101b5e05e06c3d0677f2#diff-2b09b6217977ded4ac2ee89b1c14011dbae9e0ec71716b00f85364a27b64fe09L427) | | [12853600](https://dashboard.gitguardian.com/workspace/221093/incidents/12853600) | Triggered | Generic High Entropy Secret | 8e78d2ff6656b870fb2f101b5e05e06c3d0677f2 | test/oai/test_utils.py | [View secret](https://github.com/microsoft/autogen/commit/8e78d2ff6656b870fb2f101b5e05e06c3d0677f2#diff-2b09b6217977ded4ac2ee89b1c14011dbae9e0ec71716b00f85364a27b64fe09L431) | | [12853601](https://dashboard.gitguardian.com/workspace/221093/incidents/12853601) | Triggered | Generic High Entropy Secret | 8e78d2ff6656b870fb2f101b5e05e06c3d0677f2 | test/oai/test_utils.py | [View secret](https://github.com/microsoft/autogen/commit/8e78d2ff6656b870fb2f101b5e05e06c3d0677f2#diff-2b09b6217977ded4ac2ee89b1c14011dbae9e0ec71716b00f85364a27b64fe09L429) | | [10404696](https://dashboard.gitguardian.com/workspace/221093/incidents/10404696) | Triggered | Generic High Entropy Secret | 8e78d2ff6656b870fb2f101b5e05e06c3d0677f2 | test/oai/test_utils.py | [View secret](https://github.com/microsoft/autogen/commit/8e78d2ff6656b870fb2f101b5e05e06c3d0677f2#diff-2b09b6217977ded4ac2ee89b1c14011dbae9e0ec71716b00f85364a27b64fe09R424) | | [10422482](https://dashboard.gitguardian.com/workspace/221093/incidents/10422482) | Triggered | Generic High Entropy Secret | 8e78d2ff6656b870fb2f101b5e05e06c3d0677f2 | test/oai/test_utils.py | [View secret](https://github.com/microsoft/autogen/commit/8e78d2ff6656b870fb2f101b5e05e06c3d0677f2#diff-2b09b6217977ded4ac2ee89b1c14011dbae9e0ec71716b00f85364a27b64fe09R426) | | [12853602](https://dashboard.gitguardian.com/workspace/221093/incidents/12853602) | Triggered | Generic High Entropy Secret | 8e78d2ff6656b870fb2f101b5e05e06c3d0677f2 | test/oai/test_utils.py | [View secret](https://github.com/microsoft/autogen/commit/8e78d2ff6656b870fb2f101b5e05e06c3d0677f2#diff-2b09b6217977ded4ac2ee89b1c14011dbae9e0ec71716b00f85364a27b64fe09L430) |
🛠 Guidelines to remediate hardcoded secrets
1. Understand the implications of revoking this secret by investigating where it is used in your code. 2. Replace and store your secrets safely. [Learn here](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate these secrets](https://docs.gitguardian.com/secrets-detection/secrets-detection-engine/detectors/generics/generic_high_entropy_secret#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data. To avoid such incidents in the future consider - following these [best practices](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) to catch secret before it leaves your machine and ease remediation.

🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.