Skip to content

Commit

Permalink
chore: remove logging from mongodb atlas vector store (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
pserrer1 authored Sep 4, 2024
1 parent 75b70e5 commit e8f229c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/loud-seas-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"llamaindex": patch
---

Remove logging from MongoDB Atlas Vector Store
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export class MongoDBAtlasVectorSearch
name: this.indexName,
definition: this.SEARCH_INDEX_DEFINITION,
});
console.log("Created search index: ", this.indexName);
}
}

Expand Down Expand Up @@ -198,13 +197,11 @@ export class MongoDBAtlasVectorSearch
};
});

console.debug("Inserting data into MongoDB: ", dataToInsert);
const collection = await this.ensureCollection();
const insertResult = await collection.insertMany(
dataToInsert,
this.insertOptions,
);
console.debug("Result of insert: ", insertResult);
return nodes.map((node) => node.id_);
}

Expand Down Expand Up @@ -261,7 +258,6 @@ export class MongoDBAtlasVectorSearch
},
];

console.debug("Running query pipeline: ", pipeline);
const collection = await this.ensureCollection();
const cursor = await collection.aggregate(pipeline);

Expand Down Expand Up @@ -289,7 +285,6 @@ export class MongoDBAtlasVectorSearch
ids,
};

console.debug("Result of query (ids):", ids);
return result;
}
}

0 comments on commit e8f229c

Please sign in to comment.