Fix: Update all search calls to 2-parameter API
This commit is contained in:
parent
9c87982a7d
commit
ef1745af8f
6 changed files with 32 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue