@@ -6,7 +6,10 @@ import { zodResolver } from '@hookform/resolvers/zod'
6
6
import { useMutation , useQuery } from '@tanstack/react-query'
7
7
import { useForm } from 'react-hook-form'
8
8
9
- import { addUpdateConfiguration , getConfiguration } from '@/apis/admin/configuration'
9
+ import {
10
+ addUpdateConfiguration ,
11
+ getConfiguration ,
12
+ } from '@/apis/admin/configuration'
10
13
import { Button } from '@/components/ui/button'
11
14
import { Input } from '@/components/ui/input'
12
15
import { Label } from '@/components/ui/label'
@@ -64,7 +67,7 @@ export default function Configuration() {
64
67
// Disable automatic refetching
65
68
refetchOnMount : false ,
66
69
refetchOnWindowFocus : false ,
67
- refetchOnReconnect : false
70
+ refetchOnReconnect : false ,
68
71
} )
69
72
70
73
const handleClick = ( data : TUpdateSchema ) => {
@@ -245,7 +248,7 @@ export default function Configuration() {
245
248
error = { errors . pineconeApiKey }
246
249
/>
247
250
</ div >
248
-
251
+
249
252
< div className = 'flex w-full flex-col space-y-2' >
250
253
< Label className = 'flex items-center gap-2 text-dashboardText' >
251
254
< span > Pinecone Index Name</ span >
@@ -263,6 +266,10 @@ export default function Configuration() {
263
266
placeholder = 'your-pinecone-index'
264
267
className = 'h-10 bg-white'
265
268
/>
269
+ < p className = 'mt-1 text-xs text-muted-foreground' >
270
+ You can find your index name in the Pinecone dashboard
271
+ under 'Indexes'
272
+ </ p >
266
273
{ errors . pineconeIndexName && (
267
274
< p className = 'text-xs text-red-500' >
268
275
{ errors . pineconeIndexName . message }
0 commit comments