michaelfeil / michaelfeil/infinity
MRL different dimensions not normalized
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.

All returned by OpenAI have been normalized.

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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