SearXNG Tool node#
SearXNG Tool node ช่วยให้คุณเพิ่มความสามารถในการค้นหา (search) ใน workflow ของคุณโดยใช้ SearXNG ซึ่งจะรวมผลลัพธ์จาก search engine หลายตัวโดยไม่ track ข้อมูลของคุณ
ในหน้านี้จะมี option ของ node SearXNG Tool และลิงก์ไปยัง resource อื่นๆ
Credentials
ดูข้อมูลการตั้งค่า authentication สำหรับ node นี้ ที่นี่
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 Options#
- Number of Results: จำนวนผลลัพธ์ที่ต้องการดึงมา ค่าเริ่มต้นคือ 10
- Page Number: เลขหน้าของผลลัพธ์ที่ต้องการดึง ค่าเริ่มต้นคือ 1
- Language: รหัสภาษา 2 ตัวอักษร (language code) เพื่อกรองผลลัพธ์ ตัวอย่างเช่น
en
สำหรับภาษาอังกฤษ,fr
สำหรับภาษาฝรั่งเศส ค่าเริ่มต้นคือen
- Safe Search: เปิดหรือปิดการกรองเนื้อหาที่ไม่เหมาะสมในผลลัพธ์ เลือกได้เป็น None, Moderate, หรือ Strict ค่าเริ่มต้นคือ None
Running a SearXNG instance#
node นี้ต้องใช้ SearXNG service ที่รันอยู่ใน network เดียวกับ n8n instance ของคุณ ตรวจสอบให้แน่ใจว่า n8n instance ของคุณเข้าถึง SearXNG service ได้
node นี้ต้องการผลลัพธ์เป็น JSON ซึ่งค่า default ของ SearXNG จะยังไม่เปิด JSON output ต้องเพิ่ม json
ใน section search.formats
ของไฟล์ settings.yml
ของ SearXNG instance:
1 2 3 4 5 |
|
ถ้า section formats
ยังไม่มี ให้เพิ่มเข้าไป ตำแหน่งของไฟล์ settings.yml
ขึ้นอยู่กับวิธีที่คุณติดตั้ง SearXNG ดูรายละเอียดเพิ่มเติมได้ที่ SearXNG configuration documentation
คุณภาพและความพร้อมของผลลัพธ์ขึ้นอยู่กับการตั้งค่าและสุขภาพของ SearXNG instance ที่คุณใช้
Templates and examples#
Related resources#
ดูข้อมูลเพิ่มเติมเกี่ยวกับบริการนี้ได้ที่ SearXNG's documentation หรือดู LangChain's documentation on their SearXNG integration
ดูเอกสาร 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.