मुख्य सामग्री पर जाएँ
Skillpedia
डेटाबेस40k · #7355

qdrant-model-migration

यह क्या करती है

यह गाइड बताती है कि Qdrant में embedding model (जिससे आपका डेटा searching के लिए numbers में बदला जाता है) को बिना सेवा रोके कैसे बदला जाए। इसमें समझाया गया है कि application को offline किए बिना डेटा को नए model में कैसे migrate करें।

कब इस्तेमाल करें

  • ✓जब आप text को numbers में बदलने वाला model बदलना चाहते हों।
  • ✓जब आपको बिना downtime के नए model के लिए डेटा अपडेट करना हो।
  • ✓जब आप नए model की तुलना पुराने model से करना चाहते हों।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/github/awesome-copilot/blob/main/skills/qdrant-model-migration/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“Qdrant में बिना downtime के अपना embedding model कैसे बदलूं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

Qdrant मौजूदा collection में 'vectors' (आपके डेटा को दर्शाने वाले numbers) के नए प्रकार जोड़ने की अनुमति नहीं देता। इसलिए आपको नई collection बनानी होगी और डेटा migrate करना होगा। Downtime से बचने के लिए आप 'aliases' (collection के नाम का उपनाम) का उपयोग करके collections को आसानी से बदल सकते हैं।

तकनीकी सामग्री (मूल 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

…

अक्सर पूछे जाने वाले सवाल

क्या मुझे अपना सारा डेटा फिर से embed करना होगा?

ज़्यादातर मामलों में हां। अगर आप model provider बदलते हैं (जैसे OpenAI से Cohere), model की architecture बदलते हैं, या बने numbers के dimensions बदलते हैं, तो डेटा को फिर से embed करना होगा। 'quantization' (numbers को compress करने का तरीका) जैसे छोटे बदलाव अपने आप संभल सकते हैं।

collection aliases क्या हैं?

Aliases आपकी data collections के उपनाम जैसे होते हैं। आपकी application हमेशा सीधे collection के नाम की बजाय alias की ओर इशारा करती है। इससे आप alias को नई collection की ओर मोड़ सकते हैं, बिना application का code बदले।

अगर मेरा डेटा बहुत बड़ा हो तो?

बहुत बड़े डेटा सेट के लिए सब कुछ फिर से embed करना धीमा हो सकता है। गाइड कुछ optimizations सुझाती है, जैसे HNSW indexing को अस्थायी रूप से बंद करना और parallel batch uploads करना, ताकि प्रक्रिया तेज़ हो।

जानकारी

लेखक का मूल विवरण

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
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

acquire-codebase-knowledge

40k

आपके एजेंट को किसी मौजूदा code प्रोजेक्ट को समझने और उसका documentation बनाने में मदद करता है। यह नए लोगों को प्रोजेक्ट से जोड़ने या architecture का सार जानने में उपयोगी है।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-assess

40k

आपके एजेंट को किसी प्रोजेक्ट की AI के लिए तैयारी जाँचने और रिपोर्ट बनाने देता है। यह समझने में उपयोगी है कि प्रोजेक्ट AI tools इस्तेमाल करने के लिए कितना तैयार है।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-generate-instructions

40k

आपके एजेंट को assessment के आधार पर AI tools के लिए निर्देश बनाने में मदद करता है। यह बताता है कि AI कोड के साथ बेहतर कैसे काम करे और पहचानी गई कमियाँ कैसे दूर हों।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-policy

40k

आपके एजेंट को AI प्रोजेक्ट assessment के लिए नीतियाँ तय करने या लागू करने में मदद करता है। यह प्रोजेक्ट्स के मूल्यांकन को मानक बनाने और compliance सुनिश्चित करने में उपयोगी है।

AI और एजेंटएजेंट

मिलती-जुलती skills