Skip to content

feat: Support embedding OpenAI interface - #213

Open
5102a wants to merge 1 commit into
QwenLM:mainfrom
5102a:feat/openai_embedding
Open

feat: Support embedding OpenAI interface#213
5102a wants to merge 1 commit into
QwenLM:mainfrom
5102a:feat/openai_embedding

Conversation

@5102a

@5102a 5102a commented Aug 17, 2023

Copy link
Copy Markdown

Pull Request 概述

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

提交的变更

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

@panjican

panjican commented Sep 7, 2023

Copy link
Copy Markdown

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

@unanan

unanan commented Sep 19, 2023

Copy link
Copy Markdown

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

@jinec

jinec commented Sep 26, 2023

Copy link
Copy Markdown

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

@jklj077

jklj077 commented Jan 11, 2024

Copy link
Copy Markdown
Contributor

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.

5 participants