AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

add feature custom text embedding in plugin

Open zhanglei1172 opened this issue 2 years ago • 3 comments

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

zhanglei1172 avatar Apr 21 '23 12:04 zhanglei1172

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar Apr 25 '23 18:04 github-actions[bot]

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

github-actions[bot] avatar Apr 26 '23 03:04 github-actions[bot]

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

github-actions[bot] avatar Apr 26 '23 04:04 github-actions[bot]

Need this pr

ddannyc avatar Apr 27 '23 12:04 ddannyc

Can you take a look at whats going on with the tests?

ntindle avatar Apr 27 '23 21:04 ntindle

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar Apr 28 '23 19:04 github-actions[bot]

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

vercel[bot] avatar Apr 29 '23 01:04 vercel[bot]

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

github-actions[bot] avatar Apr 29 '23 01:04 github-actions[bot]

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.

codecov[bot] avatar Apr 29 '23 01:04 codecov[bot]

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

p-i- avatar May 05 '23 00:05 p-i-

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar May 25 '23 18:05 github-actions[bot]

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

github-actions[bot] avatar Jul 14 '23 20:07 github-actions[bot]

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

netlify[bot] avatar Jul 14 '23 20:07 netlify[bot]

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

netlify[bot] avatar Jul 14 '23 20:07 netlify[bot]