botserver/src/core/bot
Rodrigo Rodriguez (Pragmatismo) 8500949fcd fix: Lower KB search thresholds and add Cloudflare AI embedding support
- Lower score_threshold in kb_indexer.rs from 0.5 to 0.3
- Lower website search threshold in kb_context.rs from 0.6 to 0.4
- Lower KB search threshold in kb_context.rs from 0.7 to 0.5
- Add Cloudflare AI (/ai/run/) URL detection in cache.rs
- Add Cloudflare AI request format ({"text": ...}) in cache.rs
- Add Cloudflare AI response parsing (result.data) in cache.rs

This fixes the issue where KB search returned 0 results even with
114 chunks indexed. The high thresholds were filtering out all results.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-05 00:06:17 -03:00
..
channels Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
kb_context.rs fix: Lower KB search thresholds and add Cloudflare AI embedding support 2026-03-05 00:06:17 -03:00
manager.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
mod.rs feat: Add comprehensive stage progress logging 2026-03-01 22:36:14 -03:00
mod_backup.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
multimedia.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
tool_context.rs fix(tools): auto-create work directory if missing in production 2026-02-22 12:58:58 -03:00
tool_executor.rs fix: add missing PathBuf import 2026-03-03 10:03:49 -03:00
ui.rs - Refactor folder as features. 2025-11-22 22:55:35 -03:00