michaelfeil / michaelfeil/infinity

MRL different dimensions not normalized

Open
#538 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.9k
Forks
206
PR merge metrics
No merged PRs in 30d

Description

### System Info

os: linux
hardware: gpu
version: 0.0.75

### Information

- [x] Docker + cli
- [ ] pip + cli
- [ ] pip + usage of Python interface

### Tasks

- [x] An officially supported CLI command
- [ ] My own modifications

### Reproduction

Hello, I found that for the embedding model deployed by `infinity`, when requesting through the `OpenAI` interface and passing in the `dimensions` parameter, although the corresponding dimension is returned, the embedding is not normalized. It seems to be directly truncated.

![Image](https://github.com/user-attachments/assets/203e1e75-1419-4a55-9450-ab90e9eb6e24)

All returned by OpenAI have been normalized.

![Image](https://github.com/user-attachments/assets/e44c031b-6ee7-4be5-bd22-afd34db78df6)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using the Docker CLI and the OpenAI interface with an embedding request that includes the dimensions parameter. Compare the returned vector with the full embedding and verify whether the reduced vector is normalized; done means dimension reduction preserves the normalization behavior reported by OpenAI.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
api, cli, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.