File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -66,4 +66,6 @@ yarn-error.log*
66
66
67
67
# typescript
68
68
* .tsbuildinfo
69
- next-env.d.ts
69
+ next-env.d.ts
70
+
71
+ .env
Original file line number Diff line number Diff line change 6
6
"dev" : " next dev" ,
7
7
"build" : " next build" ,
8
8
"start" : " next start" ,
9
+ "prepare:data" : " tsx -r dotenv/config ./src/scripts/pinecone-prepare-docs.ts" ,
9
10
"lint" : " next lint --quiet" ,
10
11
"lint:fix" : " next lint --fix" ,
11
12
"prepare" : " husky install" ,
27
28
"ai-stream-experimental" : " ^2.2.2" ,
28
29
"class-variance-authority" : " ^0.7.0" ,
29
30
"clsx" : " ^2.1.1" ,
31
+ "dotenv" : " ^16.4.5" ,
30
32
"framer-motion" : " ^11.2.12" ,
31
33
"git-repo-parser" : " ^2.0.6" ,
32
34
"langchain" : " ^0.2.8" ,
59
61
"prettier" : " ^3.2.5" ,
60
62
"prettier-plugin-tailwindcss" : " ^0.5.11" ,
61
63
"tailwindcss" : " ^3.4.1" ,
64
+ "tsx" : " ^4.16.2" ,
62
65
"typescript" : " ^5.3.3"
63
66
}
64
67
}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ import { embedAndStoreDocs } from "@/lib/vector-store";
43
43
} ;
44
44
} ) ;
45
45
46
- const validDocs = [ ...docs , ... directories ] ;
46
+ const validDocs = [ ...docs ] ;
47
47
48
48
if ( validDocs . length === 0 ) {
49
49
throw new Error ( "No valid documents to process." ) ;
You can’t perform that action at this time.
0 commit comments