-
Notifications
You must be signed in to change notification settings - Fork 44.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate plugin.handle_text_embedding
hook
#2804
Integrate plugin.handle_text_embedding
hook
#2804
Conversation
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 |
a3b379b
to
3a1cf98
Compare
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. |
3a1cf98
to
69599da
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
Codecov ReportPatch coverage:
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
☔ View full report in Codecov by Sentry. |
This is a mass message from the AutoGPT core team. For more details (and for infor on joining our Discord), please refer to: |
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.
|
✅ Deploy Preview for auto-gpt-docs canceled.
|
plugin.handle_text_embedding
hook
21aac77
to
4d3d21f
Compare
4d3d21f
to
818f381
Compare
) * add feature custom text embedding in plugin * black code format * _get_embedding_with_plugin() * Fix docstring & type hint --------- Co-authored-by: Reinier van der Leer <[email protected]>
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
addcan_handle_text_embedding(...)
andhandle_text_embedding(...)
.In
autogpt/llm_utils.py
addfor plugin in CFG.plugins:...
Documentation
Test Plan
tests/unit/models/test_base_open_api_plugin.py passes
PR Quality Checklist