generalbots/src/llm
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
..
context Add SQLx dependencies for calendar feature 2025-11-27 23:10:43 -03:00
llm_models feat: implement feature bundling architecture and fix conditional compilation 2026-01-23 13:14:20 -03:00
prompt_manager - Refactor folder as features. 2025-11-22 22:55:35 -03:00
cache.rs fix: Lower KB search thresholds and add Cloudflare AI embedding support 2026-03-05 00:06:17 -03:00
cache_test.rs Update server components and keywords 2025-12-23 15:52:35 -03:00
claude.rs chore: update dependencies and formatting 2026-02-22 15:55:39 -03:00
episodic_memory.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
glm.rs chore: update dependencies and formatting 2026-02-22 15:55:39 -03:00
local.rs WIP: Local changes before merging master into main 2026-03-01 07:40:11 -03:00
mod.rs chore: update dependencies and formatting 2026-02-22 15:55:39 -03:00
observability.rs Fix clippy warnings: match arms, async/await, Debug impls, formatting 2025-12-26 08:59:25 -03:00
rate_limiter.rs fix(security): Fix unsafe code, CORS logic, and expect usage 2026-02-19 12:06:05 +00:00
smart_router.rs feat: Add JWT secret rotation and health verification 2026-02-19 19:42:41 +00:00