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: Support embedding OpenAI interface #213

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

5102a
Copy link

@5102a 5102a commented Aug 17, 2023

Pull Request 概述

  • openai API 部署支持创建 embeddings 接口

提交的变更

  • 新增 /v1/embeddings post 接口
  • 修改 readme 相关示例代码

@panjican
Copy link

panjican commented Sep 7, 2023

你好,我使用了这份代码,发现每次调用一次/v1/embeddings接口,显存占用都会提高一些,请问这是正常的么?

@unanan
Copy link

unanan commented Sep 19, 2023

hi, is text-embedding-ada-002 a placeholder?

@jinec
Copy link

jinec commented Sep 26, 2023

@5102a 你好,我看了您的计算embeddings的方式,那么问题来了,在使用embedding进行搜索的时候,是用加法计算距离好、还是用乘法计算算法好呢

@jklj077
Copy link
Contributor

jklj077 commented Jan 11, 2024

Hi, @5102a, thanks for this proposal. However, as Qwen is not supposed to be used as an embedding module, adding this feature may cause users to believe it is officially supported. I don't think it will be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants