botserver/src/core
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
..
automation Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
bootstrap feat: Enhance KB context, embedding generator, and website crawler 2026-03-04 15:43:37 -03:00
bot fix: Lower KB search thresholds and add Cloudflare AI embedding support 2026-03-05 00:06:17 -03:00
config WIP: Local changes before merging master into main 2026-03-01 07:40:11 -03:00
directory fix(directory): add .await to ensure_admin_token() calls 2026-03-01 09:52:31 -03:00
dns Fix clippy warnings: match arms, async/await, Debug impls, formatting 2025-12-26 08:59:25 -03:00
incus Fix migration errors and reorganize migration files 2026-01-27 13:45:54 -03:00
kb fix: Lower KB search thresholds and add Cloudflare AI embedding support 2026-03-05 00:06:17 -03:00
oauth WIP: Local changes before merging master into main 2026-03-01 07:40:11 -03:00
package_manager fix(zitadel): resolve OAuth client initialization timing issue 2026-03-01 19:06:09 -03:00
secrets merge: Unify master into main - all commits unified 2026-03-01 07:43:07 -03:00
session feat: Add comprehensive stage progress logging 2026-03-01 22:36:14 -03:00
shared feat: Enhance KB context, embedding generator, and website crawler 2026-03-04 15:43:37 -03:00
bot_database.rs fix: Auto-create bot database when not configured 2026-02-15 14:57:22 +00:00
config_reload.rs feat: Add JWT secret rotation and health verification 2026-02-19 19:42:41 +00:00
features.rs Fix build errors and unused imports in core, security and package_manager modules 2026-01-24 22:04:47 -03:00
i18n.rs Debug: Add logging for missing translation keys 2026-02-14 12:25:46 +00:00
large_org_optimizer.rs Fix build errors and unused imports in core, security and package_manager modules 2026-01-24 22:04:47 -03:00
manifest.rs Update PROMPT.md and feature gating 2026-01-22 20:24:05 -03:00
middleware.rs feat: Add JWT secret rotation and health verification 2026-02-19 19:42:41 +00:00
mod.rs Update: refactor migrations, update source files, and add new features 2026-02-04 13:29:29 -03:00
organization.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
organization_invitations.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
organization_rbac.rs Fix build errors and unused imports in core, security and package_manager modules 2026-01-24 22:04:47 -03:00
performance.rs feat: Add JWT secret rotation and health verification 2026-02-19 19:42:41 +00:00
product.rs feat: Add search_enabled and menu_launcher_enabled directives to .product file 2026-01-29 23:55:50 -03:00
rate_limit.rs feat(autotask): Implement AutoTask system with intent classification and app generation 2025-12-27 21:10:09 -03:00
urls.rs fix(directory): add .await to ensure_admin_token() calls 2026-03-01 09:52:31 -03:00