Commit Graph

329 Commits

Author SHA1 Message Date
e423bcee1b Refactor: Centralize library management using a global knowledge store, adding dedicated API endpoints for various content types (texts, websites, files) under /knowledge. 2026-06-16 23:30:33 +02:00
0c158a8ed6 Implement logic to migrate local libraries into the centralized knowledge store 2026-06-16 23:30:19 +02:00
887c74b5cb Initialize global library constants and utility functions 2026-06-16 23:30:19 +02:00
48cf1e9844 Refactor chat memory tests to support recent mode and structured searching; adds test for async search handler tool 2026-06-16 19:53:48 +02:00
c9b8c5d0f5 Add dedicated workflows for searching and answering from past chat memories 2026-06-16 19:53:16 +02:00
05e8b0296f Implement chat memory tool and integrate it into agent capabilities 2026-06-16 19:53:16 +02:00
be7e1c7c49 Refactor workflow run logic by removing explicit dependency on chat memory context blocks during execution 2026-06-16 19:52:18 +02:00
872c94351d Refactor: Simplify message construction in chat and regenerate functions by using direct request inputs for enriched messages and sources 2026-06-16 19:51:49 +02:00
1803345957 Refactor: Remove internal helper functions for context processing, source deduplication, and chat memory retrieval 2026-06-16 19:50:09 +02:00
07af68eb11 Refactor chat memory context generation: Simplify deduplication logic, remove minimum score filtering, and introduce explicit context loading modes. 2026-06-16 19:49:57 +02:00
78de35b2cb Refactor chat memory utilities: Update token limits, simplify score calculation, and remove deprecated expansion logic. 2026-06-16 19:49:35 +02:00
57a73d4597 Remove unused stopwords, conversation regex, and query expansions from chat memory module 2026-06-16 19:49:13 +02:00
c18117fb87 Add async tests for chat handler and context fallback handling 2026-06-16 19:14:07 +02:00
abed82924b Add _model_error_summary and _fallback_content_from_context functions 2026-06-16 19:14:01 +02:00
ce21613905 Add _is_probably_html_url utility function 2026-06-16 19:07:53 +02:00
c46854a7b2 Add tests for rerank tool fallback when embedding model is unavailable and rerank tool uses fallback when rerank errors 2026-06-16 19:06:29 +02:00
f0ff7c894b Add fallback rerank logic for web search 2026-06-16 19:06:01 +02:00
da0c694c91 Add RANK_STOPWORDS and fallback rerank logic for missing embeddings 2026-06-16 19:05:57 +02:00
64089af5c3 Refactor chat memory loading to use idiomatic SQLAlchemy ORM queries 2026-06-15 22:58:50 +02:00
9ea61d5e4f Refactor chat memory retrieval to load context from multiple recent sessions using ORM queries; adds option to skip memory-only turns. 2026-06-15 22:58:28 +02:00
964b75d4b7 Refactor chat memory logic to use sources_json for source validation and candidate loading 2026-06-15 22:57:37 +02:00
2aebadb774 Enhance chat memory tests with helper function for sources and verify exclusion of internal memory contexts. 2026-06-15 22:56:55 +02:00
b5f90331e7 Enhance chat turn processing to correctly handle memory-only responses 2026-06-15 22:56:28 +02:00
9ec66c3196 Add comprehensive unit tests to chat memory context building, validating recency and domain-specific scenarios 2026-06-15 22:55:54 +02:00
5da8b3ba6d Refactor RAG and web search logic for improved compatibility checks in runtime 2026-06-15 22:55:54 +02:00
60b32513cf Update workflow runtime logic to correctly prepend compatibility context blocks when RAG or Web features are enabled 2026-06-15 22:55:28 +02:00
854ee51861 Enhance agent API by adding compatibility checks for RAG/Web capabilities and safely parsing required workflow capabilities 2026-06-15 22:55:28 +02:00
ebfa50bf03 Refactor chat memory context loading and implement previous session history retrieval 2026-06-15 22:55:07 +02:00
a5ad7ab261 Improve hit deduplication by enforcing a minimum score threshold 2026-06-15 22:55:07 +02:00
4b0ed88176 Enhance chat memory scoring and token handling by adding expanded query tokens and refining ranking weights. 2026-06-15 22:54:25 +02:00
ebbc19c01d Enhance chat memory NLP by updating stopwords, improving last conversation detection regex, and adding query expansions. 2026-06-15 22:54:10 +02:00
c9a9253c8d Update type hints in backend/main.py by adding Dict import 2026-06-15 22:38:43 +02:00
1097ca46d8 Ensure chat memory schema exists before running core sync functions 2026-06-15 22:37:19 +02:00
a0a103dacd Update chat memory test scenarios with new details 2026-06-15 22:37:19 +02:00
5c578a7b84 Add unit tests for chat memory context building and synchronization 2026-06-15 22:37:19 +02:00
76d066773a Improve source key extraction robustness in chat tools 2026-06-15 22:37:19 +02:00
17e22ec4ef Enhance context handling by ensuring external context is appended to the last user message if not automatically applied during row processing. 2026-06-15 22:35:57 +02:00
a111624c36 Improve context block merging logic in WorkflowRuntime and synchronize session memory after execution 2026-06-15 22:35:25 +02:00
767b45d334 Pass dynamic memory blocks to workflow run payload and sync chat memory upon regeneration 2026-06-15 22:35:25 +02:00
c0904d78f6 Integrate explicit chat memory context into workflow run selection 2026-06-15 22:34:45 +02:00
3294de9471 Sync and clean up chat memory across session management functions 2026-06-15 22:34:45 +02:00
d0c69a4f96 Feat: Integrate persistent chat memory and enhance context management
Adds helper functions to retrieve historical chat memory context (`_chat_memory_context`) and merge enriched messages. Updates both the main chat endpoint and regeneration logic to utilize this context, ensuring conversation continuity and reliable source deduplication.
2026-06-15 22:34:05 +02:00
031588198d feat: Integrate chat memory schema setup and backfill on startup 2026-06-15 22:33:41 +02:00
d9e963ef74 auto-git:
[change] backend/chat_memory.py
2026-06-15 22:33:41 +02:00
d3e7ec56ee auto-git:
[add] backend/chat_memory.py
2026-06-15 22:33:41 +02:00
8616c077cc Improve line sampling deduplication and add robust tests for message digest and prompt construction in router logic 2026-06-15 22:05:23 +02:00
13cfd7518b Implement structured message digestion and attachment summarizing for improved long-context routing. 2026-06-15 22:05:03 +02:00
ec28cc9bff Update get_workflow_events call with specific parameters in tests 2026-06-15 21:54:25 +02:00
63d0937754 Add unit test for interrupted workflow event stream API endpoint 2026-06-15 21:52:57 +02:00
117a16aca5 Add explicit 'run_interrupted' event when streaming workflow events 2026-06-15 21:52:29 +02:00