You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

categorize.json 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "components": {
  3. "begin": {
  4. "obj":{
  5. "component_name": "Begin",
  6. "params": {
  7. "prologue": "Hi there!"
  8. }
  9. },
  10. "downstream": ["answer:0"],
  11. "upstream": []
  12. },
  13. "answer:0": {
  14. "obj": {
  15. "component_name": "Answer",
  16. "params": {}
  17. },
  18. "downstream": ["categorize:0"],
  19. "upstream": ["begin"]
  20. },
  21. "categorize:0": {
  22. "obj": {
  23. "component_name": "Categorize",
  24. "params": {
  25. "llm_id": "deepseek-chat",
  26. "category_description": {
  27. "product_related": {
  28. "description": "The question is about the product usage, appearance and how it works.",
  29. "examples": "Why it always beaming?\nHow to install it onto the wall?\nIt leaks, what to do?",
  30. "to": "message:0"
  31. },
  32. "others": {
  33. "description": "The question is not about the product usage, appearance and how it works.",
  34. "examples": "How are you doing?\nWhat is your name?\nAre you a robot?\nWhat's the weather?\nWill it rain?",
  35. "to": "message:1"
  36. }
  37. }
  38. }
  39. },
  40. "downstream": ["message:0","message:1"],
  41. "upstream": ["answer:0"]
  42. },
  43. "message:0": {
  44. "obj": {
  45. "component_name": "Message",
  46. "params": {
  47. "messages": [
  48. "Message 0!!!!!!!"
  49. ]
  50. }
  51. },
  52. "downstream": ["answer:0"],
  53. "upstream": ["categorize:0"]
  54. },
  55. "message:1": {
  56. "obj": {
  57. "component_name": "Message",
  58. "params": {
  59. "messages": [
  60. "Message 1!!!!!!!"
  61. ]
  62. }
  63. },
  64. "downstream": ["answer:0"],
  65. "upstream": ["categorize:0"]
  66. }
  67. },
  68. "history": [],
  69. "messages": [],
  70. "path": [],
  71. "reference": [],
  72. "answer": []
  73. }