Skip to content

Instantly share code, notes, and snippets.

View Am0stafa's full-sized avatar

0xchaos Am0stafa

View GitHub Profile
@Am0stafa
Am0stafa / DocumentUpload.js
Created June 17, 2024 13:14 — forked from toshvelaga/DocumentUpload.js
Create vector embeddings using MongoDB
const mongoose = require('mongoose')
const Schema = mongoose.Schema
// Create a new schema for uploaded documents
const DocumentUploadSchema = new Schema({
title: String,
description: String,
fileName: String,
uploadDate: {