ntohidi
3bc56dd028
fix: allow custom LLM providers for adaptive crawler embedding config. ref: #1291
- Change embedding_llm_config from Dict to Union[LLMConfig, Dict] for type safety
- Add backward-compatible conversion property _embedding_llm_config_dict
- Replace all hardcoded OpenAI embedding configs with configurable options
- Fix LLMConfig object attribute access in query expansion logic
- Add comprehensive example demonstrating multiple provider configurations
- Update documentation with both LLMConfig object and dictionary usage patterns
Users can now specify any LLM provider for query expansion in embedding strategy:
- New: embedding_llm_config=LLMConfig(provider='anthropic/claude-3', api_token='key')
- Old: embedding_llm_config={'provider': 'openai/gpt-4', 'api_token': 'key'} (still works)
2025-09-09 12:49:55 +08:00
..
2025-09-09 12:49:55 +08:00
2025-06-29 20:41:37 +08:00
2025-07-17 16:59:10 +08:00
2025-02-10 16:58:52 +08:00
2025-05-01 21:24:52 +08:00
2025-04-17 20:13:53 +08:00
2025-07-17 16:59:10 +08:00
2025-06-05 16:20:58 +08:00
2025-08-24 18:52:37 +05:30
2025-06-10 18:08:27 +08:00
2025-06-10 18:08:27 +08:00
2025-06-10 18:08:27 +08:00
2025-03-13 22:15:15 +08:00
2025-01-13 19:19:58 +08:00
2025-02-28 19:53:35 +08:00
2025-03-20 12:13:59 +08:00
2024-06-04 22:43:09 +08:00
2025-01-13 19:19:58 +08:00
2025-03-12 19:05:24 +08:00
2025-04-24 18:36:25 +08:00
2025-03-04 20:57:33 +08:00
2025-08-03 16:50:54 +08:00
2025-03-10 18:54:51 +08:00
2025-02-19 17:23:25 +08:00
2025-08-09 19:37:22 +05:30
2025-03-13 22:15:15 +08:00
2025-02-19 17:23:25 +08:00
2025-06-10 18:08:27 +08:00
2025-03-18 17:20:24 +05:30
2025-07-17 16:59:10 +08:00
2025-05-08 17:13:35 +08:00
2025-01-13 19:19:58 +08:00
2025-03-02 21:33:33 +08:00
2025-01-13 19:19:58 +08:00
2025-07-17 11:35:16 +02:00
2025-06-12 12:23:03 +02:00
2025-03-07 20:55:56 +08:00
2025-08-15 18:47:31 +08:00
2025-04-10 23:22:38 +08:00
2025-02-09 18:49:10 +08:00
2025-04-15 22:27:18 +08:00
2025-06-10 18:08:27 +08:00
2025-06-10 18:08:27 +08:00
2025-06-10 18:08:27 +08:00
2025-03-20 12:13:59 +08:00
2025-05-02 21:15:24 +08:00
2025-01-13 19:19:58 +08:00
2025-01-13 19:19:58 +08:00
2024-09-24 20:52:08 +08:00
2025-08-04 19:02:01 +08:00
2025-02-28 19:53:35 +08:00
2025-05-08 17:13:35 +08:00
2025-07-17 17:05:35 +08:00
2025-01-13 19:19:58 +08:00
2025-07-17 16:59:10 +08:00
2025-07-17 16:59:10 +08:00
2025-07-17 16:59:10 +08:00
2024-12-10 17:55:29 +08:00
2025-06-10 18:08:27 +08:00
2025-08-14 18:21:24 +08:00
2024-12-10 20:10:39 +08:00
2025-06-10 18:08:27 +08:00
2025-07-17 16:59:10 +08:00
2025-04-21 23:20:59 +08:00
2025-06-29 20:41:37 +08:00