Skip to content
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

✨ feat: 允许用户自行定义 Embedding 模型 #5177

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

cookieY
Copy link
Contributor

@cookieY cookieY commented Dec 25, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

由于之前代码commit差距过大 重新提交,提交说明参考 #4370

📝 补充信息 | Additional Information

Copy link

vercel bot commented Dec 25, 2024

@cookieY is attempting to deploy a commit to the LobeHub Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. 🌠 Feature Request New feature or request | 特性与建议 labels Dec 25, 2024
@lobehubbot
Copy link
Member

👍 @cookieY

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link

codecov bot commented Dec 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.66%. Comparing base (0533150) to head (597a3e3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5177      +/-   ##
==========================================
+ Coverage   92.19%   97.66%   +5.46%     
==========================================
  Files         568       12     -556     
  Lines       43406     2908   -40498     
  Branches     2550      307    -2243     
==========================================
- Hits        40020     2840   -37180     
+ Misses       3386       68    -3318     
Flag Coverage Δ
app ?
server 97.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@halexan
Copy link

halexan commented Dec 25, 2024

支不支持本地部署的embedding模型?例如 api 地址是 http://127.0.0.1/v1 的类 openai 接口?

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Does it support locally deployed embedding models? For example, the api address is an openai-like interface at http://127.0.0.1/v1?

@cookieY
Copy link
Contributor Author

cookieY commented Dec 25, 2024

支不支持本地部署的embedding模型?例如 api 地址是 http://127.0.0.1/v1 的类 openai 接口?

基于现有的框架设计无法实现这样的自定义需求,本地部署可以使用 ollama

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Does it support locally deployed embedding models? For example, the api address is an openai-like interface at http://127.0.0.1/v1?

Such custom requirements cannot be achieved based on the existing framework design. For local deployment, ollama can be used.

src/config/knowledge.ts Outdated Show resolved Hide resolved
src/const/settings/knowledge.ts Outdated Show resolved Hide resolved
src/database/schemas/ragEvals.ts Outdated Show resolved Hide resolved
src/libs/agent-runtime/types/embeddings.ts Outdated Show resolved Hide resolved
src/server/globalConfig/parseSystemAgent.ts Outdated Show resolved Hide resolved
src/server/modules/Files/index.ts Outdated Show resolved Hide resolved
@cookieY
Copy link
Contributor Author

cookieY commented Dec 27, 2024

@arvinxx 已根据建议全部进行修改

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@arvinxx All modifications have been made based on suggestions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议 size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants