Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Compare dimension truncation (Matryoshka) with quantization

Đang mở
#3 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
75/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
postgresql, python
Lĩnh vực
data, machine-learning

Hướng nghiên cứu

Start in src/shrinkvec/codecs/ and read make_codec in codecs/__init__.py to understand how codec names are parsed. Add a wrapper codec that truncates to the first m dimensions and renormalises, then check how codecs are included in the lab and chart. Done means truncation and combined truncation plus quantization appear there, byte counts use the shorter vectors, and a test confirms full-dimension truncation equals float32.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: lab codec enhancement larger

Matryoshka models (OpenAI text-embedding-3, Nomic and others) can be cut to fewer dimensions. Teams ask whether to shorten the vectors, quantize them, or both. The lab should answer that on their data.

Where to start: src/shrinkvec/codecs/. A wrapper codec that keeps the first m dimensions and renormalises, which can be combined with any other codec (for example trunc-512, trunc-512+rabitq-4). make_codec in codecs/__init__.py parses names.

Done when: truncation and truncation-plus-quantization appear in the lab and the chart, byte counts reflect the shorter vectors, and a test shows truncation to the full dimension equals float32.

Ngôn ngữ chính
Python
Star
0
Fork
0
Merge trung bình
1 giờ 35 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ahmad-codex/shrinkvec

Tất cả issue của ahmad-codex/shrinkvec

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.