Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

sidebars.js 3.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
  1. /**
  2. * Creating a sidebar enables you to:
  3. - create an ordered group of docs
  4. - render a sidebar for each doc of that group
  5. - provide next/previous navigation
  6. The sidebars can be generated from the filesystem, or explicitly defined here.
  7. Create as many sidebars as you want.
  8. */
  9. // @ts-check
  10. /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
  11. const sidebars = {
  12. // By default, Docusaurus generates a sidebar from the docs folder structure
  13. promptfoo: [
  14. {
  15. type: 'doc',
  16. id: 'intro',
  17. },
  18. {
  19. type: 'doc',
  20. id: 'installation',
  21. },
  22. {
  23. type: 'doc',
  24. id: 'getting-started',
  25. },
  26. /*
  27. {
  28. type: 'doc',
  29. id: 'key-concepts',
  30. },
  31. */
  32. {
  33. type: 'doc',
  34. id: 'cloud/index',
  35. },
  36. {
  37. type: 'category',
  38. label: 'Configuration',
  39. link: {
  40. type: 'generated-index',
  41. },
  42. items: [
  43. { type: 'doc', id: 'configuration/guide' },
  44. { type: 'doc', id: 'configuration/reference' },
  45. { type: 'doc', id: 'configuration/parameters' },
  46. { type: 'doc', id: 'configuration/chat' },
  47. { type: 'doc', id: 'configuration/datasets' },
  48. { type: 'doc', id: 'configuration/scenarios' },
  49. { type: 'doc', id: 'configuration/caching' },
  50. { type: 'doc', id: 'configuration/telemetry' },
  51. ],
  52. },
  53. {
  54. type: 'category',
  55. label: 'Usage',
  56. link: {
  57. type: 'generated-index',
  58. },
  59. items: [{ type: 'autogenerated', dirName: 'usage' }],
  60. },
  61. {
  62. type: 'category',
  63. label: 'Assertions & metrics',
  64. collapsed: true,
  65. link: {
  66. type: 'doc',
  67. id: 'configuration/expected-outputs/index',
  68. },
  69. items: [{ type: 'autogenerated', dirName: 'configuration/expected-outputs' }],
  70. },
  71. {
  72. type: 'category',
  73. label: 'Providers',
  74. link: {
  75. type: 'generated-index',
  76. slug: '/providers',
  77. },
  78. collapsed: true,
  79. items: [{ type: 'autogenerated', dirName: 'providers' }],
  80. },
  81. {
  82. type: 'category',
  83. label: 'Integrations',
  84. link: {
  85. type: 'generated-index',
  86. },
  87. collapsed: true,
  88. items: [{ type: 'autogenerated', dirName: 'integrations' }],
  89. },
  90. {
  91. type: 'category',
  92. label: 'Red teaming',
  93. link: {
  94. type: 'generated-index',
  95. },
  96. items: [
  97. { type: 'autogenerated', dirName: 'red-team' },
  98. { type: 'doc', id: 'guides/llm-redteaming' },
  99. ],
  100. },
  101. {
  102. type: 'category',
  103. label: 'Guides',
  104. link: {
  105. type: 'generated-index',
  106. },
  107. items: [{ type: 'autogenerated', dirName: 'guides' }],
  108. },
  109. {
  110. type: 'doc',
  111. id: 'contributing',
  112. },
  113. {
  114. type: 'doc',
  115. id: 'faq',
  116. },
  117. ],
  118. redTeamSidebar: [
  119. {
  120. type: 'autogenerated',
  121. dirName: 'red-team', // This should match the directory name under 'docs'
  122. },
  123. {
  124. type: 'doc',
  125. id: 'guides/llm-redteaming',
  126. },
  127. ],
  128. };
  129. module.exports = sidebars;
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...