aifree.dev

Dạy AI tài liệu của mình, hay để nó tự đọc?

RAG và fine-tuning · Thực hành · 5 phút · rag, embeddings, context · học sau Context window, Embedding

RAG (tra cứu rồi trả lời) đưa đúng tài liệu vào context window lúc trả lời, như thi mở sách. Fine-tuning (huấn luyện thêm) thay đổi chính model bằng cách học từ ví dụ, như ôn bài. Dữ kiện hay thay đổi thì để trong sách; thói quen, định dạng và văn phong thì đưa vào model.

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 muốn chatbot nắm chính sách công ty, mà chính sách đổi mỗi tháng. Bạn làm gì?
  2. 2 Xem

    Two ways to teach it your stuff

    1 / 3

    Open book (RAG)

    1. 1. Question comes in
    2. 2. Find the relevant pages
    3. 3. Put them in the window
    4. 4. Answer, citing them

    Study (fine-tuning)

    1. 1. Collect examples
    2. 2. Train the model on them
    3. 3. Model changes
    4. 4. Answer from memory

    Same question, two lanes. The model is the same at the start of both.

    Hai làn, cùng một model lúc xuất phát: một làn thêm trang vào context window, làn kia thay đổi chính model.

  3. RAG thật ra là embedding (vector biểu diễn nghĩa) đang làm việc: biến câu hỏi thành một điểm, tìm những trang có điểm nằm gần nhất, rồi đặt chúng vào context window (vùng văn bản model nhìn thấy). Model trả lời từ chữ nó thật sự thấy, và có thể dẫn nguồn. Fine-tuning thì khác: huấn luyện trên hàng trăm ví dụ cho tới khi một hành vi nằm hẳn trong các con số của model.

  4. 4 Bạn là model

    Xếp bốn tình huống vào đúng làn, rồi bấm "Check".

    Open book (RAG)

    1. 1. Question comes in
    2. 2. Find the relevant pages
    3. 3. Put them in the window
    4. 4. Answer, citing them

    Study (fine-tuning)

    1. 1. Collect examples
    2. 2. Train the model on them
    3. 3. Model changes
    4. 4. Answer from memory
    1. Answer questions about our 400-page internal policy that changes monthly

    2. Always reply in our brand’s terse, lowercase style

    3. Cite the exact clause from a customer’s contract

    4. Parse our odd internal ticket format reliably

    Route each situation to a lane, then Check.
  5. 5 Kiểm tra

    Khi một dữ kiện thay đổi, cách nào cập nhật rẻ hơn?
  6. 6 Nói lại bằng lời bạn

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

    Viết ba ghi chú ngắn của riêng bạn, tạo embedding cho chúng bằng một key embedding miễn phí, tạo embedding cho một câu hỏi, rồi tìm ghi chú gần nhất bằng cosine similarity. Vậy là bạn vừa tự làm xong nửa "tra cứu" của RAG.

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 đã.

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