Chuyển đến nội dung
Skillpedia
Agent41k · #6720

embedding-strategies

Skill này làm gì

Công cụ này giúp bạn chọn mô hình tốt nhất để biến văn bản thành các con số (vector) để máy tính hiểu được ý nghĩa. Nó cũng đưa ra mẹo về cách tổ chức các văn bản này để tìm kiếm hiệu quả hơn.

Khi nào nên dùng

  • ✓Khi bạn cần chọn mô hình để AI hiểu văn bản của mình.
  • ✓Khi bạn quyết định cách chia văn bản thành các phần nhỏ để AI xử lý.
  • ✓Khi bạn muốn nâng cao chất lượng thông tin AI trích xuất từ văn bản.

Liên kết skill

https://github.com/wshobson/agents/blob/main/plugins/llm-application-dev/skills/embedding-strategies/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/wshobson/agents/blob/main/plugins/llm-application-dev/skills/embedding-strategies/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Mô hình embedding nào tốt nhất để tìm kiếm thông tin trong các tài liệu tài chính?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ so sánh các mô hình “embedding” khác nhau, là các “phiên dịch” chuyển văn bản thành số. Nó cũng chỉ ra quy trình chuẩn bị văn bản trước khi chuyển thành số để AI hiểu tốt hơn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Embedding Strategies

Guide to selecting and optimizing embedding models for vector search applications.

When to Use This Skill

  • Choosing embedding models for RAG
  • Optimizing chunking strategies
  • Fine-tuning embeddings for domains
  • Comparing embedding model performance
  • Reducing embedding dimensions
  • Handling multilingual content

Core Concepts

1. Embedding Model Comparison (2026)

Model Dimensions Max Tokens Best For
voyage-3-large 1024 32000 Claude apps (Anthropic recommended)
voyage-3 1024 32000 Claude apps, cost-effective
voyage-code-3 1024 32000 Code search
voyage-finance-2 1024 32000 Financial documents
voyage-law-2 1024 32000 Legal documents
text-embedding-3-large 3072 8191 OpenAI apps, high accuracy
text-embedding-3-small 1536 8191 OpenAI apps, cost-effective
bge-large-en-v1.5 1024 512 Open source, local deployment
all-MiniLM-L6-v2 384 256 Fast, lightweight
multilingual-e5-large 1024 512 Multi-language

2. Embedding Pipeline

Document → Chunking → Preprocessing → Embedding Model → Vector
                ↓
        [Overlap, Size]  [Clean, Normalize]  [API/Local]

Templates and detailed worked examples

Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.

Best Practices

Do's

  • Match model to use case: Code vs prose vs multilingual
  • Chunk thoughtfully: Preserve semantic boundaries
  • Normalize embeddings: For cosine similarity search
  • Batch requests: More efficient than one-by-one
  • Cache embeddings: Avoid recomputing for static content
  • Use Voyage AI for Claude apps: Recommended by Anthropic

Don'ts

  • Don't ignore token limits: Truncation loses information
  • Don't mix embedding models: Incompatible vector spaces
  • Don't skip preprocessing: Garbage in, garbage out
  • Don't over-chunk: Lose important context
  • Don't forget metadata: Essential for filtering and debugging
Câu hỏi thường gặp

“Embeddings” là gì?

Đó là các biểu diễn bằng số của văn bản, giúp máy tính so sánh và hiểu ý nghĩa của từ và cụm từ.

“Chunking” là gì?

Đó là quá trình chia một văn bản dài thành các phần nhỏ hơn để AI có thể xử lý và hiểu từng phần tốt hơn.

Tại sao chọn đúng mô hình lại quan trọng?

Các mô hình khác nhau phù hợp với các loại văn bản khác nhau (mã nguồn, tài chính, v.v.), và dùng sai mô hình có thể khiến AI hiểu sai thông tin.

Chi tiết

Mô tả gốc của tác giả

Select and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizing embedding quality for specific domains.

repo: wshobson/agents

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6720
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự