AutoGPT
AutoGPT copied to clipboard
add feature custom text embedding in plugin
Background
Currently, the plugin has provided an interface that can replace OpenAI's text completion, but for users who want to run everything locally, using custom models for embeddings is also very necessary.
Changes
In autogpt/models/base_open_ai_plugin.py add can_handle_text_embedding(...) and handle_text_embedding(...).
In autogpt/llm_utils.py add for plugin in CFG.plugins:...
Documentation
Test Plan
tests/unit/models/test_base_open_api_plugin.py passes
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
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
This PR exceeds the recommended size of 200 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
Need this pr
Can you take a look at whats going on with the tests?
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| docs | ⬜️ Ignored (Inspect) | Apr 29, 2023 1:27am |
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
Codecov Report
Patch coverage: 53.33% and project coverage change: -0.01 :warning:
Comparison is base (
c821b29) 51.02% compared to head (5a2b971) 51.02%.
Additional details and impacted files
@@ Coverage Diff @@
## master #2804 +/- ##
==========================================
- Coverage 51.02% 51.02% -0.01%
==========================================
Files 118 118
Lines 4886 4898 +12
Branches 643 649 +6
==========================================
+ Hits 2493 2499 +6
- Misses 2212 2215 +3
- Partials 181 184 +3
| Impacted Files | Coverage Δ | |
|---|---|---|
| autogpt/memory/vector/utils.py | 72.09% <50.00%> (-11.78%) |
:arrow_down: |
| autogpt/models/base_open_ai_plugin.py | 96.66% <100.00%> (+1.66%) |
:arrow_up: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This is a mass message from the AutoGPT core team. Our apologies for the ongoing delay in processing PRs. This is because we are re-architecting the AutoGPT core!
For more details (and for infor on joining our Discord), please refer to: https://github.com/Significant-Gravitas/Auto-GPT/wiki/Architecting
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.
Deploy Preview for auto-gpt-docs canceled.
| Name | Link |
|---|---|
| Latest commit | ff51c5a5a67095f717376faa39065755a529964f |
| Latest deploy log | https://app.netlify.com/sites/auto-gpt-docs/deploys/64b1b2c0650f0700084876c1 |
Deploy Preview for auto-gpt-docs canceled.
| Name | Link |
|---|---|
| Latest commit | 5a2b971f119d3e508c89fa6fcc4c7eb57db74ec5 |
| Latest deploy log | https://app.netlify.com/sites/auto-gpt-docs/deploys/64b1f0abefba310008e26b93 |