Skip to content

Recursive Character Text Splitter node#

Recursive Character Text Splitter node จะช่วยแยกข้อมูลเอกสารแบบ recursive โดยพยายามคง paragraph, sentence และ word ไว้ด้วยกันให้นานที่สุด

ในหน้านี้จะมี parameter ของ node Recursive Character Text Splitter และลิงก์ resource อื่นๆ ที่เกี่ยวข้อง

Parameter resolution in sub-nodes (การประมวลผล Parameter ใน sub-nodes)

Sub-nodes มีพฤติกรรมแตกต่างจาก node อื่นๆ เมื่อประมวลผลหลายรายการโดยใช้ expression

Node ส่วนใหญ่ รวมถึง root node จะรับ input กี่รายการก็ได้ ประมวลผลรายการเหล่านี้ และส่ง output ออกมา คุณสามารถใช้ expression เพื่ออ้างอิงถึง input item และ node จะประมวลผล expression สำหรับแต่ละ item ตามลำดับ ตัวอย่างเช่น หากมี input เป็นค่า name ห้ารายการ expression {{ $json.name }} จะถูกประมวลผลเป็นแต่ละชื่อตามลำดับ

ใน sub-nodes expression จะถูกประมวลผลเป็น item แรกเสมอ ตัวอย่างเช่น หากมี input เป็นค่า name ห้ารายการ expression {{ $json.name }} จะถูกประมวลผลเป็นชื่อแรกเสมอ

Node parameters#

  • Chunk Size: ใส่จำนวนตัวอักษรในแต่ละ chunk
  • Chunk Overlap: ใส่จำนวนตัวอักษรที่ chunk จะซ้อนทับกัน

Templates and examples#

Building Your First WhatsApp Chatbot

by Jimleuk

View template details
Scrape and summarize webpages with AI

by n8n Team

View template details
Ask questions about a PDF using AI

by David Roberts

View template details
Browse Recursive Character Text Splitter integration templates, or search all templates

ดูข้อมูลเพิ่มเติมได้ที่ LangChain's text splitter documentation และ LangChain's recursively split by character documentation

ดูเอกสาร Advanced AI ของ n8n

AI glossary#

  • completion: Completions are the responses generated by a model like GPT.
  • hallucinations: Hallucination in AI is when an LLM (large language model) mistakenly perceives patterns or objects that don't exist.
  • vector database: A vector database stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.
  • vector store: A vector store, or vector database, stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.