update
This commit is contained in:
12
embedding/get.ts
Normal file
12
embedding/get.ts
Normal 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 }));
|
||||
Reference in New Issue
Block a user