-
Notifications
You must be signed in to change notification settings - Fork 29
/
astro.config.mjs
159 lines (157 loc) · 4.43 KB
/
astro.config.mjs
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import remarkMath from 'remark-math';
import rehypeMathjax from 'rehype-mathjax';
import astroD2 from 'astro-d2'
// https://astro.build/config
export default defineConfig({
site: 'https://docs.relari.ai',
base: '/v0.3',
outDir: './dist/v0.3',
trailingSlash: "never",
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeMathjax],
},
integrations: [
starlight({
title: 'Continuous Eval',
components: {
// Override the default `SocialIcons` component.
ThemeSelect: './src/components/ThemeSelect.astro',
},
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 4, },
customCss: [
// Relative path to your custom CSS file
'./src/styles/custom.css',
],
social: {
github: 'https://github.com/relari-ai/continuous-eval/tree/main',
},
sidebar: [
{
label: 'Getting Started',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Start Here!', link: '/'},
{ label: 'Why continuous-eval?', link: '/getting-started/introduction/'},
{ label: 'Installation', link: '/getting-started/installation/' },
{ label: 'Quick Start', link: '/getting-started/quickstart/' },
],
},
{
label: 'Orchestration',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Pipeline', link: '/pipeline/pipeline'},
{ label: 'Dataset', link: '/pipeline/eval_dataset' },
{ label: 'Metrics and Tests', link: '/pipeline/metrics_and_tests'},
{ label: 'Pipeline Logger', link: '/pipeline/pipeline_logger' },
{ label: 'Evaluation Runner', link: '/pipeline/eval_runner' },
{ label: 'Evaluation Manager (Deprecated)', link: '/pipeline/eval_manager' },
],
},
{
label: 'Metrics',
items: [
{ label: 'Overview', link: '/metrics/overview/' },
{
label: 'Retrieval',
collapsed: true,
items: [
{
label: 'Deterministic',
autogenerate: { directory: '/metrics/Retrieval/Deterministic/' }
},
{
label: 'LLM-Based',
autogenerate: { directory: '/metrics/Retrieval/LLM-Based/' }
},
]
},
{
label: 'Text Generation',
collapsed: true,
items: [
{
label: 'Deterministic',
autogenerate: { directory: '/metrics/Generation/Deterministic/' }
},
{
label: 'Semantic',
items: [
{ label: 'DeBERTa Answer Scores', link: '/metrics/generation/semantic/deberta_answer_scores/' },
{ label: 'BERT Answer Similarity', link: '/metrics/generation/semantic/bert_answer_similarity/' },
{ label: 'BERT Answer Relevance', link: '/metrics/generation/semantic/bert_answer_relevance/' },
]
},
{
label: 'LLM-Based',
autogenerate: { directory: '/metrics/Generation/LLM-Based/' }
},
]
},
{
label: 'Code Generation',
collapsed: true,
items : [
{
label: 'Deterministic',
autogenerate: { directory: '/metrics/Code/Deterministic/' }
},
{
label: 'LLM-Based',
autogenerate: { directory: '/metrics/Code/LLM-Based/' }
}
]
},
{
label: 'Agent Tool Use',
collapsed: true,
items : [
{
label: 'Deterministic',
autogenerate: { directory: '/metrics/Tools/Deterministic/' }
},
]
},
{
label: 'Classification',
collapsed: true,
items : [
{
label: 'Deterministic',
autogenerate: { directory: '/metrics/Classification/Deterministic/' }
},
]
},
{label: 'Custom Metrics', link: '/metrics/custom_metrics/'},
{label: 'Metric Ensembling', link: '/metrics/ensembling_classifier/'},
],
},
{
label: 'Datasets',
autogenerate: { directory: '/dataset/' }
},
{
label: 'Examples',
items : [
{
label: 'Basic',
autogenerate: { directory: '/examples/Basics/' }
},
{
label: 'Advanced',
autogenerate: { directory: '/examples/Advanced/' }
},
{
label: 'End-to-End',
autogenerate: { directory: '/examples/End_to_End/' }
},
],
},
],
}),
astroD2({output: 'd2', basePath: '/v0.3'}),
],
});