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 model #4208

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

Conversation

cookieY
Copy link
Contributor

@cookieY cookieY commented Sep 29, 2024

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

本次变更主要实现了embedding 模型可配置性

通过新增环境变量DEFAULT_EMBEDDING_MODEL实现可自主配置embedding 模型, provider基于现有模型供应商列表

示例:

以 / 为分隔符 openai 为模型提供商, text-embedding-3-small为 embedding 模型

DEFAULT_EMBEDDING_MODEL=openai/text-embedding-3-small   

📝 补充信息 | Additional Information

目前已支持 openai bedrock ollama模型提供商 的 embedding 模型

可在agent-runtime下对各模型提供商实现 embeddings 方法从而增加 embedding 模型支持

cookieY and others added 30 commits July 31, 2024 11:09
actions-user and others added 25 commits September 21, 2024 12:14
* 'main' of github.com:cookieY/lobe-chat:
  🔖 chore(release): v1.20.5 [skip ci]
  📝 docs: Update docker-compose to use new LOGTO env (lobehub#4199)
  👷 build: optimize image size under glibc env (lobehub#4176)
  🔖 chore(release): v1.20.4 [skip ci]
  ⚡ perf: remove some blur style to improve performance (lobehub#4085)
  Update dependency unstructured-client to ^0.18.0 (lobehub#4065)
  📝 docs: Add deployment using ZITADEL authentication services (lobehub#4081)
  🔖 chore(release): v1.20.3 [skip ci]
  🐛 fix: improve delete orphan chunks when delete files (lobehub#4179)
  📝 docs: add new configuration item of clerk singup (lobehub#4188)
  📝 docs: update model-provider document (lobehub#4181)
  🔖 chore(release): v1.20.2 [skip ci]
  💄 style: add zhipu glm-4-flashx model (lobehub#4173)
  👷 build: revert lobehub#4025 (lobehub#4175)
  🔖 chore(release): v1.20.1 [skip ci]
  👷 build: optimize image size under `glibc` env (lobehub#4025)
  🔖 chore(release): v1.20.0 [skip ci]
  ✨ feat: add Hunyuan(Tencent) model provider (lobehub#4147)
  🔖 chore(release): v1.19.36 [skip ci]
  💄 style: add llama3.2 model for openrouter provider (lobehub#4151)
Copy link

vercel bot commented Sep 29, 2024

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

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Sep 29, 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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@dosubot dosubot bot added the 🌠 Feature Request New feature or request | 特性与建议 label Sep 29, 2024
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.

3 participants