|
@@ -60,7 +60,8 @@ export class FFBVectorService implements OnModuleInit {
|
|
|
|
|
|
|
|
// Step 2: Use repository aggregation for vector search
|
|
// Step 2: Use repository aggregation for vector search
|
|
|
const results = await this.repo.vectorSearch(vector, k, 50); // numCandidates = 50
|
|
const results = await this.repo.vectorSearch(vector, k, 50); // numCandidates = 50
|
|
|
-
|
|
|
|
|
|
|
+ console.log(results)
|
|
|
|
|
+ // results.forEach(e => console.log(e.score))
|
|
|
// Step 3: Return results directly (they now include the full document + score)
|
|
// Step 3: Return results directly (they now include the full document + score)
|
|
|
return results.map(r => ({
|
|
return results.map(r => ({
|
|
|
...r, // all FFBProduction fields
|
|
...r, // all FFBProduction fields
|