Skip to content

Commit

Permalink
💗
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Nov 7, 2023
1 parent 8ab9dbd commit 068ed5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@
"engines": {
"node": ">= 18"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"sideEffects": false,
"files": [
"dist"
],
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./datastore": {
"types": "./dist/datastore/index.d.ts",
"import": "./dist/datastore/index.js"
Expand All @@ -42,6 +40,12 @@
"import": "./dist/utils/index.js"
}
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"sideEffects": false,
"files": [
"dist"
],
"scripts": {
"build": "tsc --project tsconfig.dist.json",
"prebuild": "rimraf dist",
Expand Down
2 changes: 1 addition & 1 deletion src/datastore/pinecone/datastore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class PineconeDatastore<
try {
// Get the text from the docs that are missing an embedding
const textsToEmbed = docs
.filter((doc) => !doc.embedding)
.filter((doc) => !doc.embedding?.length)
.map((doc) => {
const content = doc.metadata[this.contentKey];
if (typeof content !== 'string') {
Expand Down

0 comments on commit 068ed5a

Please sign in to comment.