Context Management 103: เตรียม source bundleContext Management 103: prepare a source bundle
เรียนรู้วิธีรวม source material ให้ AI ใช้: excerpt, file path, date, boundary และสิ่งที่ไม่ควร pasteLearn how to collect the right source material for AI: excerpts, file paths, dates, boundaries, and what not to paste.
A source bundle is the material AI should use as evidence.
It can be pasted text, file excerpts, links, meeting notes, screenshots, tables, or code snippets. The important part is not the format. The important part is that the model knows what each source is and how to use it.
Why source bundles matter
If you paste ten paragraphs without labels, the AI has to guess:
- where the text came from
- which parts are current
- which parts are authoritative
- which parts are draft notes
- whether outside knowledge is allowed
A good source bundle makes those decisions explicit.
The source bundle format
Use this simple structure:
Sources:
[Source 1]
Type:
Date:
Owner:
Use for:
Do not use for:
Content:
[Source 2]
Type:
Date:
Owner:
Use for:
Do not use for:
Content:
You can shorten it for small tasks, but keep labels when accuracy matters.
Include boundaries
Boundaries tell the AI what a source can and cannot prove.
Use for: current workshop lesson titles and order.
Do not use for: pricing, launch date, or certificate policy.
This is useful because real documents often mix confirmed facts, old ideas, and unfinished drafts.
Prefer excerpts over dumps
Do not paste a whole document if only one section matters.
Better:
Source: product guideline excerpt
Use for: brand boundary between learn app and marketing site
Excerpt:
- learn app owns lesson, practice, workshop, guide, course, progress UI
- www site owns marketing and catalog pages
This gives the model high-signal context without burying the task.
If the full document is needed, say why:
The full policy is included because the answer must check for contradictions across sections.
Preserve source identity
When working with files, include file paths.
File: src/lib/catalog.ts
Use for: current workshop metadata shape
Relevant fields: id, titleTh, titleEn, descTh, descEn, badge, lessons, duration, thumbnail
When working with research, include links and dates.
Source: official docs page
Access date: 2026-05-08
Use for: current terminology only
This helps later verification.
Separate facts from notes
Do not mix confirmed facts with ideas in one unlabeled block.
Instead:
Confirmed facts:
- Thai is default language.
- Free workshops use /workshops/{slug}/ route shape.
Draft ideas:
- Could include screenshots exercise.
- Might add a final context-pack template.
The model should not treat every note as a decision.
Tell AI what to do when source is missing
Add a rule:
If the source does not support a claim, say "not stated in the source" instead of guessing.
This is one of the highest-value context rules for reliable work.
Practice: build a source bundle
Choose a task:
Write a lesson summary for beginners.
Now create a source bundle with three sources:
[Source 1]
Type:
Date:
Use for:
Do not use for:
Content:
[Source 2]
Type:
Date:
Use for:
Do not use for:
Content:
[Source 3]
Type:
Date:
Use for:
Do not use for:
Content:
Then add this instruction:
Use only the sources above for facts. If a detail is missing, list it under "Needs human confirmation".
Next: Context Management 104 - use examples and constraints.
Source bundle คือชุด material ที่ AI ควรใช้เป็น evidence
อาจเป็น text ที่ paste, excerpt จาก file, link, meeting notes, screenshot, table หรือ code snippet format ไม่ใช่ประเด็นหลัก ประเด็นคือ model ต้องรู้ว่า source แต่ละชิ้นคืออะไรและควรใช้ยังไง
ทำไม source bundle สำคัญ
ถ้า paste มา 10 ย่อหน้าโดยไม่มี label AI ต้องเดาเองว่า:
- text มาจากไหน
- ส่วนไหนเป็นข้อมูลปัจจุบัน
- ส่วนไหน authoritative
- ส่วนไหนเป็น draft note
- ใช้ความรู้ข้างนอกได้หรือไม่
source bundle ที่ดีทำให้เรื่องเหล่านี้ชัด
format ของ source bundle
ใช้ structure ง่ายๆ นี้:
Sources:
[Source 1]
Type:
Date:
Owner:
Use for:
Do not use for:
Content:
[Source 2]
Type:
Date:
Owner:
Use for:
Do not use for:
Content:
งานเล็กทำให้สั้นลงได้ แต่งานที่ต้อง accurate ควรมี label
ใส่ boundary
boundary บอก AI ว่า source นี้พิสูจน์อะไรได้และไม่ได้
Use for: lesson title และลำดับ workshop ปัจจุบัน
Do not use for: pricing, launch date, certificate policy
มีประโยชน์เพราะเอกสารจริงมักผสม fact ที่ยืนยันแล้ว ไอเดียเก่า และ draft ที่ยังไม่ตัดสินใจ
ใช้ excerpt แทนการ dump ทุกอย่าง
อย่า paste ทั้งเอกสารถ้าต้องใช้แค่ section เดียว
ดีกว่า:
Source: product guideline excerpt
Use for: brand boundary ระหว่าง learn app กับ marketing site
Excerpt:
- learn app owns lesson, practice, workshop, guide, course, progress UI
- www site owns marketing and catalog pages
แบบนี้ให้ context ที่ signal สูงโดยไม่ฝัง task
ถ้าจำเป็นต้องใช้ทั้งเอกสาร ให้บอกเหตุผล:
แนบ full policy เพราะคำตอบต้องเช็ก contradiction ข้าม section
รักษาตัวตนของ source
ถ้าทำงานกับไฟล์ ให้ใส่ file path
File: src/lib/catalog.ts
Use for: shape ของ workshop metadata ปัจจุบัน
Relevant fields: id, titleTh, titleEn, descTh, descEn, badge, lessons, duration, thumbnail
ถ้าทำงานกับ research ให้ใส่ link และ date
Source: official docs page
Access date: 2026-05-08
Use for: terminology ปัจจุบันเท่านั้น
ช่วยให้ verify ทีหลังง่ายขึ้น
แยก fact จาก note
อย่าผสม fact ที่ยืนยันแล้วกับ idea ใน block เดียวที่ไม่มี label
ใช้แบบนี้แทน:
Confirmed facts:
- Thai is default language.
- Free workshops use /workshops/{slug}/ route shape.
Draft ideas:
- Could include screenshots exercise.
- Might add a final context-pack template.
model ไม่ควรมอง note ทุกบรรทัดเป็น decision
บอก AI ว่าถ้า source ไม่มีให้ทำอะไร
เพิ่ม rule นี้:
If the source does not support a claim, say "not stated in the source" instead of guessing.
นี่เป็น context rule ที่คุ้มมากสำหรับงานที่ต้อง reliable
แบบฝึกหัด: สร้าง source bundle
เลือก task นี้:
เขียน lesson summary สำหรับ beginner
สร้าง source bundle 3 ชิ้น:
[Source 1]
Type:
Date:
Use for:
Do not use for:
Content:
[Source 2]
Type:
Date:
Use for:
Do not use for:
Content:
[Source 3]
Type:
Date:
Use for:
Do not use for:
Content:
แล้วเพิ่ม instruction นี้:
Use only the sources above for facts. If a detail is missing, list it under "Needs human confirmation".
ถัดไป: Context Management 104 - ใช้ examples และ constraints.
เข้าสู่ระบบเพื่อบันทึกความคืบหน้าSign in to track your progress
เข้าสู่ระบบSign in→