aifree.dev

Vì sao tìm “automobile” lại ra ghi chú về “car”?

Tìm kiếm ngữ nghĩa: embedding và độ tương đồng cosine · Cơ bản · 5 phút · embeddings, rag · học sau Embedding

Tìm kiếm ngữ nghĩa biến câu tìm và mọi tài liệu thành embedding, những dãy số có hướng đi theo nghĩa, rồi trả về tài liệu chỉ gần hướng câu tìm nhất (độ tương đồng cosine), kể cả khi không chung chữ nào.

Trước khi bắt đầu: bạn giải thích được chuyện này cho bạn bè không?

1 = hoàn toàn không · 5 = dễ dàng

  1. 1 Đoán trước

    Bạn tìm “automobile” trong chín ghi chú. Không ghi chú nào có chữ đó. Tìm theo nghĩa (mô hình embedding all-MiniLM-L6-v2) sẽ xếp ghi chú nào đầu tiên?
  2. 2 Xem

    Search by meaning

    1 / 4

    keyword search: notes that contain a word of “automobile”

    No note contains that word.

    search by meaning: the three closest notes

    • My car won’t start in the cold.0.29
    • Automatic door repair service0.23
    • Best tyres for a family hatchback0.16

    measured with all-MiniLM-L6-v2 (384 numbers per text) · cosine similarity · 2026-10-23

    No note says “automobile”. Keywords find nothing; meaning finds the car.

    Biến câu tìm và mọi ghi chú thành điểm; bộ tìm kiếm trả về những điểm gần nhất, dù chúng dùng chữ gì.

  3. Đây là tìm kiếm ngữ nghĩa (semantic search, tìm theo nghĩa). Một mô hình embedding biến mỗi ghi chú thành 384 con số, làm một lần từ trước. Câu tìm của bạn có 384 số riêng, và bộ tìm kiếm so hướng: độ tương đồng cosine, 1 là cùng hướng, gần 0 là không liên quan. “Automobile” và “car” hay đi cùng những chữ giống nhau, nên hướng của chúng khớp.

  4. 4 Bạn là model

    Bạn là bộ tìm kiếm. Với bốn câu tìm, chọn ghi chú chỉ gần câu tìm nhất: ghi chú mà all-MiniLM-L6-v2 xếp đầu.

    you are the search · pick the note that points closest to the query

    Search: “feline”

    measured with all-MiniLM-L6-v2 (384 numbers per text) · cosine similarity · 2026-10-23

    You are the search. Which note points closest?
  5. 5 Kiểm tra

    Trong hình, tìm “airplane tickets”. Ghi chú nào ra đầu tiên?
  6. Hai thói quen cho app thật. Đặt điểm tối thiểu, để “không có gì gần” cũng là một câu trả lời. Và giữ cả tìm theo từ khóa: embedding làm nhòe những thứ chính xác như mã lỗi, tên riêng và chữ “not”. Nhiều công cụ trộn cả hai (hybrid search). Trong RAG, những đoạn gần nhất là thứ được dán vào prompt.

  7. 7 Nói lại bằng lời bạn

  8. 8 Nhiệm vụ · 5 phút

    Chép key miễn phí trên trang embeddings của Jina (không cần thẻ) và embed bốn đoạn trong một request với "normalized": true: “automobile”, “My car won’t start”, “Automatic door repair”, “Mobile phone deals”. Với vector đã chuẩn hóa, cosine chỉ là tích vô hướng (SUMPRODUCT trong bảng tính). Ghi chú về xe có thắng mà không chung chữ nào không?

Ba câu nhanh

Rút ngẫu nhiên từ bộ câu hỏi của bài; lần sau sẽ khác.

Xong chưa?

Còn bây giờ: bạn giải thích được cho bạn bè chưa?

1 = hoàn toàn không · 5 = dễ dàng

Trả lời ba câu nhanh trước đã.

Nguồn

  • Cosine similarities measured with sentence-transformers/all-MiniLM-L6-v2 (https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2: 384 dimensions, mean pooling, normalised) on 2026-10-23 by scripts/explain-data/semantic-search.ts (plain forward pass, no torch), which reproduces the published example below exactly
  • https://sbert.net/docs/sentence_transformer/usage/semantic_textual_similarity.html (checked 2026-10-23): all-MiniLM-L6-v2 on “The weather is lovely today.”, “It’s so sunny outside!”, “He drove to the stadium.” gives 0.6660, 0.1046, 0.1411
  • Scores used (query → note): automobile → car 0.288, automatic door 0.233, tyres 0.162, phone deals 0.116, cat on the sofa −0.080; feline → kitten 0.312, cat 0.271; my vehicle broke down → car 0.387, door 0.256, bicycle 0.217; airplane tickets → flights 0.343, phone deals 0.303; quantum physics homework → pasta 0.132 (best of nine)
  • Pairs: “I love this car.” / “I do not love this car.” 0.775; “Flights from London to Paris” / “Flights from Paris to London” 0.997; “Error code E-4012” / “Error code E-4013” 0.908
  • The nine notes and five queries were written for the lesson. The 2-D map is the first two principal components of their 14 embeddings, scaled to 5–95; nearest notes and scores use all 384 numbers
  • https://jina.ai/embeddings/ (checked 2026-10-23): new users get an auto-generated API key with free tokens; free keys 100 RPM and 100K TPM; endpoint https://api.jina.ai/v1/embeddings, jina-embeddings-v5-text-small recommended for text; aifree.dev catalog jina-ai-free-api-tokens (verified 2026-10-12): 10M tokens per new API key, no card

Đăng Oct 23, 2026 · cập nhật Oct 23, 2026

Never miss new offers and news

New tools, credits, and AI news are added regularly. Pick how you want to hear about them.

Telegram channel
Join @aifree_dev and get new free AI offers and news right in your Telegram feed.
Browser notifications
Turn on push notifications and get an alert on this device whenever something new is posted. No account needed.
Email newsletter
A weekly digest of new, changed and expiring free AI offers. Double opt-in, one-click unsubscribe.

Unsubscribe anytime. Privacy

Frequently asked questions

What is aifree.dev?

aifree.dev helps everyone access AI through a curated directory of free AI tools, API credits, free tiers, and startup programs for coding, image, voice, video, and students - verified regularly.

How are offers presented?

Each offer includes its access details, free models when available, and expiration information when provided. Limited-time deals stay visible so they are easy to compare.

Do education and startup programs need verification?

Yes. Providers usually ask students to verify their status with a school email, student ID, or a program like the GitHub Student Pack, and ask startups to verify company details such as age, funding, or website. Check each offer’s claim page for the exact requirements.

What kinds of free AI offers are listed?

Free tiers and free trials from AI providers, free API credits, startup and student programs, and free tools for coding, image generation, voice, and video.

How can I suggest a tool or report a broken link?

Use the submit form: paste the offer page URL and a short note. A person checks every submission before anything is listed. Broken links and changed terms go through the same form.

+

Know a good one?

Tell us about an AI tool worth knowing. Found a broken link? We want to hear that too.

Submit an offer