langchain-migration-deep-dive

Featured

Migrate to LangChain from raw OpenAI SDK, LlamaIndex, or custom LLM code. Covers codebase assessment, side-by-side validation, RAG migration, agent migration, and feature-flagged gradual rollout. Trigger: "migrate to langchain", "langchain refactor", "legacy LLM migration", "replace openai SDK with langchain", "llamaindex to langchain".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# LangChain Migration Deep Dive ## Current State !`npm list 2>/dev/null | grep -E "openai|langchain|llamaindex" | head -10` ## Overview Migrate from raw SDK calls (OpenAI, Anthropic) or other frameworks (LlamaIndex, custom agents) to LangChain. Covers codebase scanning, pattern-by-pattern migration, side-by-side validation, and feature-flagged rollout. ## Step 1: Assess Codebase ```typescript // Scan for migration targets import * as fs from "fs"; import * as path from "path"; interface MigrationItem { file: string; line: number; pattern: string; complexity: "low" | "medium" | "high"; } function scanForMigration(dir: string): MigrationItem[] { const items: MigrationItem[] = []; const patterns = [ { regex: /openai\.chat\.completions\.create/g, name: "OpenAI direct call", complexity: "low" as const }, { regex: /new OpenAI\(/g, name: "OpenAI SDK init", complexity: "low" as const }, { regex: /anthropic\.messages\.create/g, name: "Anthropic direct call", complexity: "low" as const }, { regex: /from llama_index/g, name: "LlamaIndex import", complexity: "medium" as const }, { regex: /VectorStoreIndex/g, name: "LlamaIndex vector store", complexity: "high" as const }, { regex: /function_call|tool_choice/g, name: "Manual tool calling", complexity: "high" as const }, ]; // Recursive file scan function scan(dir: string) { for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { if (entry.isDirectory() && !entry.name....

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category