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
|
|
@ -2,7 +2,7 @@
|
|||
* 🧠 BRAINY EMBEDDED PATTERNS
|
||||
*
|
||||
* AUTO-GENERATED - DO NOT EDIT
|
||||
* Generated: 2025-08-26T19:07:11.967Z
|
||||
* Generated: 2025-08-26T19:40:18.500Z
|
||||
* Patterns: 220
|
||||
* Coverage: 94-98% of all queries
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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