koan-vector-migration
OfficialMigrate vectors, zero AI cost.
Data & Analytics#caching#embeddings#migration#vector database#data management#AI cost optimization#Weaviate#ElasticSearch#Koan
Authorsylin-org
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Migrating between different vector databases typically requires regenerating all embeddings, which is costly in terms of AI API calls and time. This Skill provides a strategy to export and import vectors without regeneration, enabling zero-cost migration between compatible vector stores.
Core Features & Use Cases
- Zero-Cost Migration: Export existing embeddings from one vector database and import them into another without incurring AI API costs for re-embedding.
- Embedding Caching: Cache embeddings after generation or export to facilitate quick transfers and reduce reliance on AI services during migration.
- Provider Support: Supports export from ElasticSearch and Weaviate, with planned support for Qdrant and Milvus.
- Use Case: You've built a semantic search feature using Weaviate, but now need to switch to ElasticSearch for better integration with your existing stack. Use this Skill to export all your product embeddings from Weaviate, update your configuration to ElasticSearch, and then import the cached embeddings, all without making new calls to your embedding model.
Quick Start
To export vectors from Weaviate to a cache, then import to ElasticSearch:
- Export from Weaviate: using (EntityContext.Adapter("weaviate")) { var vectorRepo = sp.GetRequiredService<IVectorSearchRepository<Media, string>>(); await foreach (var batch in vectorRepo.ExportAllAsync(batchSize: 100)) { await cache.SetAsync(batch.Id, "ada-002", batch.Embedding); } }
- Update
appsettings.jsonto useelasticsearchadapter. - Import to ElasticSearch: foreach (var mediaId in allMediaIds) { var embedding = await cache.GetAsync(mediaId, "ada-002"); if (embedding != null) { var media = new Media { Id = mediaId, Embedding = embedding }; await media.Save(); } }
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: koan-vector-migration Download link: https://github.com/sylin-org/koan-framework/archive/main.zip#koan-vector-migration Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.