AutoGPT
AutoGPT copied to clipboard
Added Support for QDrant DB
Background
The Qdrant DB provides a way to store and retrieve data points using the Qdrant index and help in similarity search. This plugin enables users to store data in Qdrant's highly scalable index and retrieve data points based on their similarity to a query data point.
Changes
Added a Qdrant memory module that will help to store and retrieve data points in the Qdrant index.
Documentation
Installation
To use the Qdrant Memory , you need to have the following dependencies installed:
- qdrant-client
- autogpt
You can install the Qdrant Memory by running the following command:
pip install qdrant-client
Configuration
Before using the Qdrant Memory, you need to configure it with your Qdrant credentials and collection name. You can configure the Qdrant Memory by modifying your Auto-GPT .env file (.env). Here's an example configuration for the Qdrant Memory:
memory:
provider: qdrant
qdrant_host: <your_qdrant_host>
qdrant_api_key: <your_qdrant_api_key>
qdrant_collection_name: <your_qdrant_collection_name>
### Test Plan
I have tested the code on different prompts like Lawyer-GPT and Dev-GPT . The data gets stored in the vector indexes.
### PR Quality Checklist
- [x] My pull request is atomic and focuses on a single change.
- [x] I have thoroughly tested my changes with multiple different prompts.
- [x] I have considered potential risks and mitigations for my changes.
- [x] I have documented my changes clearly and comprehensively.
- [x] I have not snuck in any "extra" small tweaks changes <!-- Submit these as separate Pull Requests, they are the easiest to merge! -->
<!-- If you haven't added tests, please explain why. If you have, check the appropriate box. If you've ensured your PR is atomic and well-documented, check the corresponding boxes. -->
<!-- By submitting this, I agree that my pull request should be closed if I do not fill this out or follow the guidelines. -->
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 19, 2023 7:31am |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
I am afraid this PR will have to wait for the re-arch.
Codecov Report
Patch coverage: 44.18% and project coverage change: -0.24 :warning:
Comparison is base (
5b4bcf1) 62.67% compared to head (8153287) 62.44%.
Additional details and impacted files
@@ Coverage Diff @@
## master #4108 +/- ##
==========================================
- Coverage 62.67% 62.44% -0.24%
==========================================
Files 74 75 +1
Lines 3400 3443 +43
Branches 495 498 +3
==========================================
+ Hits 2131 2150 +19
- Misses 1120 1143 +23
- Partials 149 150 +1
| Impacted Files | Coverage Δ | |
|---|---|---|
| autogpt/memory/__init__.py | 49.20% <33.33%> (-2.65%) |
:arrow_down: |
| autogpt/memory/qdrant.py | 40.00% <40.00%> (ø) |
|
| autogpt/config/config.py | 74.57% <66.66%> (-0.43%) |
:arrow_down: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Deployment failed with the following error:
Resource is limited - try again in 38 minutes (more than 100, code: "api-deployments-free-per-day").
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
Hey, I've marked this as don't merge until the Memory Fixes are in. Sorry to keep it on hold longer, just no real way to test/validate functionality until the fixes are in
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Before we process this PR further, please check out / comment on #4280.