Thuta Learning
LangChain
AdvancedAIအဆင့်မြင့်

Document Loaders

LangChainသင်ခန်းစာ 10

Document Loaders များသည် external sources များ (text file, PDF, website) မှ data များကို documents များအဖြစ် load လုပ်ပေးသည်။

python
from langchain_community.document_loaders import TextLoader

loader = TextLoader("my_document.txt")
documents = loader.load()

print(documents[0].page_content[:100]) # Print first 100 chars
You should see
(my_document.txt ထဲရှိ စာသားများကို LangChain Document object အဖြစ် load လုပ်သွားမည်)

နောက်ဆုံးပြင်ဆင်ရက်

Progress ကို ဤ browser (ဤစက်) တွင်သာ သိမ်းထားပါသည်။ အခြားစက်များနှင့် sync မလုပ်ပါ။

ဤသင်ခန်းစာတွင် အမှားတွေ့ပါက အကြောင်းကြားရန်သင့် email app ကို ဤသင်ခန်းစာလိပ်စာ ဖြည့်ပြီးသားဖြင့် ဖွင့်ပေးပါမည် — သင်ကိုယ်တိုင် ပို့မှသာ ပို့မည်ဖြစ်သည်။

Document Loaders | Thuta Learning