18 lines
365 B
TypeScript
18 lines
365 B
TypeScript
|
import { getVectorDb } from '@/utils/ContentVectorDatabase'
|
||
|
import { nicelog } from '@/utils/nicelog'
|
||
|
;(async function () {
|
||
|
nicelog('• Refreshing vector db content...')
|
||
|
|
||
|
const db = await getVectorDb({
|
||
|
rebuildIndex: false,
|
||
|
updateContent: true,
|
||
|
})
|
||
|
|
||
|
const results = await db.query('editor')
|
||
|
|
||
|
nicelog(results)
|
||
|
|
||
|
nicelog('✔ Complete!')
|
||
|
process.exit()
|
||
|
})()
|