Skip to content

Commit

Permalink
index db working on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil-lalani committed Sep 16, 2024
1 parent 9ff8f15 commit 2641321
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/renderer/vector_db.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import OpenAI from "openai";
export async function addDocuments(chunks, company, name, runID, folderPath) {
const db = await openDB('vectorDB', 1, {
upgrade(db) {
if (!db.objectStoreNames.contains('documents')) {
const documentStore = db.createObjectStore('documents', {
autoIncrement: true,
keyPath: 'id',
Expand All @@ -14,7 +13,6 @@ export async function addDocuments(chunks, company, name, runID, folderPath) {
documentStore.createIndex('vector', 'vector');
documentStore.createIndex('vectorMag', 'vectorMag');
documentStore.createIndex('hits', 'hits');
}
},
});

Expand Down

0 comments on commit 2641321

Please sign in to comment.