Embedding
Nền móngFoundationsMột hàm biến văn bản thành vector vài trăm đến vài nghìn chiều, sao cho hai đoạn cùng nghĩa nằm gần nhau. "Gần" nghĩa là model đã thấy những thứ như vậy đi cùng nhau, không phải "đúng" hay "giống từng chữ".
A function that turns text into a vector of a few hundred to a few thousand dimensions, so that passages with the same meaning land close together. "Close" means the model has seen such things go together, not "correct" or "same words".
Chọn embedding là đổi khả năng khớp chữ chính xác và khả năng giải thích lấy khả năng nhận ra cùng một ý dù được diễn đạt khác đi.
Choosing embeddings trades exact lexical matching and explainability for the ability to recognise the same idea expressed in different words.
- Dùng choUse for
- FAQ hỗ trợ khách hàng, gợi ý nội dung liên quan, tìm ảnh bằng chữ, đầu vào cho R1 và O1 đến O3.Support FAQs, related-content suggestions, image search by text, input to R1 and O1 through O3.
- ĐượcGain
- Embed một lần, dùng cho nhiều việc. Rẻ hơn nhiều so với gọi LLM (xem trang giá của nhà cung cấp). Model đa ngôn ngữ đặt "con mèo" cạnh "cat".Embed once, reuse for many jobs. Far cheaper than an LLM call (check the vendor's pricing page). Multilingual models place "con mèo" next to "cat".
- Lấy ở đâuWhere from
- API của OpenAI, Voyage AI, Cohere, Google…, hoặc model open-weight tự chạy (BGE, E5). Anthropic không có model embedding riêng; tài liệu của Anthropic giới thiệu Voyage AI.APIs from OpenAI, Voyage AI, Cohere, Google…, or an open-weight model you run yourself (BGE, E5). Anthropic has no embedding model of its own; its docs point to Voyage AI.
- MấtLose
- Đổi model là embed lại toàn bộ. Mù với phủ định và con số. Một triệu vector 1.536 chiều float32 chiếm khoảng 6,1 GB.Switching models means re-embedding everything. Blind to negation and numbers. One million 1,536-dim float32 vectors take about 6.1 GB.
Dấu hiệu nhận biết:Telltale sign: người dùng diễn đạt cùng một ý theo nhiều cách khác nhau.users express the same idea in many different ways.