본문으로 건너뛰기
Skillpedia
데이터베이스40k · #7355

qdrant-model-migration

하는 일

이 가이드는 서비스 중단 없이 Qdrant에서 임베딩 모델(검색을 위해 데이터를 숫자로 바꾸는 방식)을 바꾸도록 돕습니다. 애플리케이션을 오프라인으로 만들지 않고, 데이터를 새 모델로 옮기는 방법을 설명합니다.

사용하는 경우

  • ✓텍스트를 숫자로 바꾸는 모델을 바꾸고 싶을 때.
  • ✓다운타임 없이 새 모델에 맞게 데이터를 업데이트해야 할 때.
  • ✓새 모델을 기존 모델과 비교해 테스트하고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/qdrant-model-migration/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/qdrant-model-migration/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“다운타임 없이 Qdrant에서 임베딩 모델을 어떻게 바꿀 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

Qdrant는 기존 컬렉션에 새로운 종류의 '벡터'(데이터를 나타내는 숫자)를 추가하는 것을 허용하지 않습니다. 따라서 새 컬렉션을 만들고 데이터를 옮겨야 합니다. 다운타임을 피하려면 '별칭(aliases, 컬렉션의 별명)'을 사용해 컬렉션을 매끄럽게 전환할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

What to Do When Changing Embedding Models

Vectors from different models are incompatible. You cannot mix old and new embeddings in the same vector space. You also cannot add new named vector fields to an existing collection. All named vectors must be defined at collection creation time. Both migration strategies below require creating a new collection.

Can I Avoid Re-embedding?

Use when: looking for shortcuts before committing to full migration.

You MUST re-embed if: changing model provider (OpenAI to Cohere), changing architecture (CLIP to BGE), incompatible dimension counts across different models, or adding sparse vectors to dense-only collection.

You CAN avoid re-embedding if: using Matryoshka models (use dimensions parameter to output lower-dimensional embeddings, learn linear transformation from sample data, some recall loss, good for 100M+ datasets). Or changing quantization (binary to scalar): Qdrant re-quantizes automatically. Quantization

Need Zero Downtime (Alias Swap)

Use when: production must stay available. Recommended for model replacement at scale.

  • Create a new collection with the new model's dimensions and distance metric
  • Re-embed all data into the new collection in the background
  • Point your application at a collection alias instead of a direct collection name
  • Atomically swap the alias to the new collection Switch collection
  • Verify search quality, then delete the old collection

Careful, the alias swap only redirects queries. Payloads must be re-uploaded separately.

Need Both Models Live (Side-by-Side)

Use when: A/B testing models, multi-modal (dense + sparse), or evaluating a new model before committing.

You cannot add a named vector to an existing collection. Create a new collection with both vector fields defined upfront:

  • Create new collection with old and new named vectors both defined Collection with multiple vectors
  • Migrate data from old collection, preserving existing vectors in the old named field
  • Backfill new model embeddings incrementally using UpdateVectors Update vectors
  • Compare quality by querying with using: "old_model" vs using: "new_model"
  • Swap alias to new collection once satisfied

Co-locating large multi-vectors (especially ColBERT) with dense vectors degrades ALL queries, even those only using dense. At millions of points, users report 13s latency dropping to 2s after removing ColBERT. Put large vectors on disk during side-by-side migration.

If you anticipate future model migrations, define both vector fields upfront at collection creation.

Dense to Hybrid Search Migration

Use when: adding sparse/BM25 vectors to an existing dense-only collection. Most common migration pattern.

You cannot add sparse vectors to an existing dense-only collection. Must recreate:

  • Create new collection with both dense and sparse vector configs defined
  • Re-embed all data with both dense and sparse models
  • Migrate payloads, swap alias

Sparse vectors at chunk level have different TF-IDF characteristics than document level. Test retrieval quality after migration, especially for non-English text without stop-word removal.

Re-embedding Is Too Slow

Use when: dataset is large and re-embedding is the bottleneck.

  • Use update_mode: insert (v1.17+) for safe idempotent migration Update mode
  • Scroll the old collection with with_vectors=False, re-embed in batches, upsert into new collection
  • Upload in parallel batches (64-256 points per request, 2-4 parallel streams) Bulk upload
  • Disable HNSW during bulk load (set indexing_threshold_kb very high, restore after)
  • For Qdrant Cloud inference, switching models is a config change, not a pipeline change Inference docs

…

자주 묻는 질문

모든 데이터를 다시 임베딩해야 하나요?

대부분의 경우 그렇습니다. 모델 제공자(예: OpenAI에서 Cohere로)를 바꾸거나, 모델 구조나 생성된 숫자의 차원을 바꾸면 데이터를 다시 임베딩해야 합니다. 양자화 방식(숫자를 압축하는 방식) 같은 작은 변경은 자동으로 처리될 수 있습니다.

컬렉션 별칭은 무엇인가요?

데이터 컬렉션의 별명과 같습니다. 애플리케이션이 정확한 컬렉션 이름 대신 별칭을 가리키므로, 애플리케이션 코드를 바꾸지 않고도 별칭이 가리키는 컬렉션을 새 것으로 바꿀 수 있습니다.

데이터가 매우 크면 어떻게 하나요?

아주 큰 데이터셋은 전체를 다시 임베딩하는 데 시간이 오래 걸릴 수 있습니다. 이 가이드는 과정을 빠르게 하기 위해 HNSW 인덱싱을 일시적으로 끄고 병렬 배치 업로드를 하는 등의 최적화를 제안합니다.

상세 정보

작성자의 원본 설명

Guides embedding model migration in Qdrant without downtime. Use when someone asks 'how to switch embedding models', 'how to migrate vectors', 'how to update to a new model', 'zero-downtime model change', 'how to re-embed my data', or 'can I use two models at once'. Also use when upgrading model dimensions, switching providers, or A/B testing models.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7355
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬