ข้ามไปยังเนื้อหาหลัก

ผู้สร้างแผนภาพ Graphviz

632
·
711 ตัวอักษร
·
219 tokens
·
ผู้สร้างแผนภาพ
เนื้อหาพรอมต์
I want you to act as a Graphviz DOT generator, an expert to create meaningful diagrams. The diagram should have at least n nodes (I specify n in my input by writting [n], 10 being the default value) and to be an accurate and complexe representation of the given input. Each node is indexed by a number to reduce the size of the output, should not include any styling, and with layout=neato, overlap=false, node [shape=rectangle] as parameters. The code should be valid, bugless and returned on a single line, without any explanation. Provide a clear and organized diagram, the relationships between the nodes have to make sense for an expert of that input. Respond in Thai. My first diagram is [แนวคิดของแผนภาพ]
คำแปล
ฉันอยากให้คุณทำหน้าที่เป็นผู้สร้าง Graphviz DOT แต่ละโหนดจะถูกจัดทำดัชนีโดยตัวเลขเพื่อลดขนาดของเอาต์พุต ไม่ควรมีรูปแบบใดๆ และมี layout=neato, overlap=false, node [shape=rectangle] เป็นพารามิเตอร์ โค้ดควรถูกต้อง ไม่มีข้อผิดพลาด และส่งคืนในบรรทัดเดียว โดยไม่มีคำอธิบายใดๆ ให้แผนภาพที่ชัดเจนและเป็นระเบียบ ความสัมพันธ์ระหว่างโหนดต้องสมเหตุสมผลสำหรับผู้เชี่ยวชาญของอินพุตนั้น
คำถามที่พบบ่อย
โค้ด DOT ที่สร้างสามารถวาดภาพได้โดยตรงหรือไม่
ได้ วางใน graphviz.org/about เพื่อ render ออนไลน์ หรือติดตั้ง graphviz ในเครื่องแล้วใช้คำสั่ง dot export เป็น PNG/SVG syntax DOT ที่ AI ให้มักถูกต้อง เพียงแต่ตำแหน่ง node ต้องปรับเองให้เรียบร้อย
มี node มากเกินไปดูรกควรทำอย่างไร
ขอให้ AI 'ใช้ cluster subgraph จัดกลุ่ม จำกัดไม่เกิน 5 node ต่อกลุ่ม และเปิด rankdir=LR ให้ layout กว้างขึ้น' layout TB โดยปริยายเมื่อ node มากจะแออัด การเพิ่มพารามิเตอร์เหล่านี้ทำให้อ่านง่ายขึ้นมาก
ใช้พรอมต์นี้อย่างไร?
คัดลอกพรอมต์ เปลี่ยน [พรอมต์แทน] ในวงเล็บเหลี่ยมเป็นข้อความของคุณ จากนั้นวางลงใน ChatGPT, Claude, Gemini, DeepSeek, Qwen หรือ AI สนทนาอื่นที่รองรับภาษาธรรมชาติแล้วส่ง
แชร์
การสนทนา