Fix: Update all search calls to 2-parameter API

This commit is contained in:
David Snelling 2025-08-26 12:49:31 -07:00
parent 9c87982a7d
commit ef1745af8f
6 changed files with 32 additions and 34 deletions

View file

@ -355,7 +355,7 @@ export class NaturalLanguageProcessor {
for (const term of terms) {
try {
// Search for similar entities in the knowledge base
const results = await this.brain.search(term, 5)
const results = await this.brain.search(term, { limit: 5 })
for (const result of results) {
if (result.score > 0.8) { // High similarity threshold