Skip to content

Commit 905abb9

Browse files
committed
Code changes for running LLM
1 parent a27e86a commit 905abb9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@ yarn-error.log*
6666

6767
# typescript
6868
*.tsbuildinfo
69-
next-env.d.ts
69+
next-env.d.ts
70+
71+
.env

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9+
"prepare:data": "tsx -r dotenv/config ./src/scripts/pinecone-prepare-docs.ts",
910
"lint": "next lint --quiet",
1011
"lint:fix": "next lint --fix",
1112
"prepare": "husky install",
@@ -27,6 +28,7 @@
2728
"ai-stream-experimental": "^2.2.2",
2829
"class-variance-authority": "^0.7.0",
2930
"clsx": "^2.1.1",
31+
"dotenv": "^16.4.5",
3032
"framer-motion": "^11.2.12",
3133
"git-repo-parser": "^2.0.6",
3234
"langchain": "^0.2.8",
@@ -59,6 +61,7 @@
5961
"prettier": "^3.2.5",
6062
"prettier-plugin-tailwindcss": "^0.5.11",
6163
"tailwindcss": "^3.4.1",
64+
"tsx": "^4.16.2",
6265
"typescript": "^5.3.3"
6366
}
6467
}

src/scripts/pinecone-prepare-docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import { embedAndStoreDocs } from "@/lib/vector-store";
4343
};
4444
});
4545

46-
const validDocs = [...docs, ...directories];
46+
const validDocs = [...docs];
4747

4848
if (validDocs.length === 0) {
4949
throw new Error("No valid documents to process.");

0 commit comments

Comments
 (0)