This commit is contained in:
2025-12-07 22:29:44 +08:00
parent c9e4358bd8
commit baa47a5289
5 changed files with 95 additions and 0 deletions

12
embedding/get.ts Normal file
View File

@@ -0,0 +1,12 @@
import util from 'node:util';
import { index } from './common.ts'
// const documents = await index.getDocuments({ limit: 10 });
// console.log('Documents:', documents);
const v = await index.search('engine search', {
limit: 2,
// showMatchesPosition: true,
showRankingScore: true,
})
console.log('Search Results:', util.inspect(v, { depth: null }));