WeKnora/internal/application/service/chat_pipeline
MidoriKurage dfb371154c test(pipeline): add failing test for deterministic merge output ordering
groupAndMergeOverlapping groups results through Go maps whose
iteration order is undefined. The concatenated output has no global
sort, so different runs can return chunks in different sequences
even for identical inputs.

This test exercises cross-unit tie-breaking (Score, KnowledgeID,
ChunkType) with chunks that land in separate merge units. The test
currently fails because the post-merge sort is missing.
2026-07-27 13:30:21 +08:00
..
chat_completion.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
chat_completion_stream.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
chat_completion_stream_test.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
chat_pipeline.go feat(prompts): update assistant descriptions and add intent-specific templates 2026-03-25 22:08:29 +08:00
chat_pipeline_test.go feat(prompts): update assistant descriptions and add intent-specific templates 2026-03-25 22:08:29 +08:00
common.go feat(llm): add prompt-cache observability and wiki cache-friendly prompts 2026-07-23 19:17:30 +08:00
common_image_requirement_test.go fix(chat): enforce retrieved image output in answers 2026-07-15 18:10:31 +08:00
data_analysis.go feat(llm): add prompt-cache observability and wiki cache-friendly prompts 2026-07-23 19:17:30 +08:00
extract_entity.go feat(llm): add prompt-cache observability and wiki cache-friendly prompts 2026-07-23 19:17:30 +08:00
extract_entity_test.go fix(graph): recover JSON from malformed/truncated fences in extract_entity 2026-05-07 15:40:19 +08:00
filter_top_k.go fix: stabilize top-k retrieval ordering 2026-07-17 18:42:45 +08:00
filter_top_k_test.go fix: stabilize top-k retrieval ordering 2026-07-17 18:42:45 +08:00
into_chat_message.go feat(backend): improve parent-child chunk merge and imageinfo matching 2026-06-16 01:09:07 +08:00
load_history.go fix: respect multi-turn-disabled flag in KnowledgeQA pipeline 2026-05-26 10:45:42 +08:00
merge.go feat(backend): improve parent-child chunk merge and imageinfo matching 2026-06-16 01:09:07 +08:00
merge_expand.go feat(prompts): update assistant descriptions and add intent-specific templates 2026-03-25 22:08:29 +08:00
merge_faq.go feat(prompts): update assistant descriptions and add intent-specific templates 2026-03-25 22:08:29 +08:00
merge_group_deterministic_test.go test(pipeline): add failing test for deterministic merge output ordering 2026-07-27 13:30:21 +08:00
merge_history.go feat(prompts): update assistant descriptions and add intent-specific templates 2026-03-25 22:08:29 +08:00
merge_overlap.go fix(knowledge): stitch chunks by text overlap, not by position 2026-05-30 17:53:47 +08:00
merge_parent_resolve_test.go feat(backend): improve parent-child chunk merge and imageinfo matching 2026-06-16 01:09:07 +08:00
plugin_test.go feat(prompt): enhance context and intent classification in templates 2026-03-26 18:57:12 +08:00
progress.go feat(agent): enhance suggested questions API with tag scopes 2026-07-17 10:19:43 +08:00
progress_test.go fix(chat): persist attachment content and fix fallback multi-turn context 2026-07-16 17:41:27 +08:00
query_expansion.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
query_understand.go feat(llm): add prompt-cache observability and wiki cache-friendly prompts 2026-07-23 19:17:30 +08:00
query_understand_test.go Revert "fix: preserve agent system prompt for greetings" 2026-06-04 17:39:38 +08:00
references.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
references_test.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
rerank.go feat(agent): enhance suggested questions API with tag scopes 2026-07-17 10:19:43 +08:00
rerank_clean_test.go feat(prompts): update assistant descriptions and add intent-specific templates 2026-03-25 22:08:29 +08:00
rerank_scope_test.go feat(agent): enhance suggested questions API with tag scopes 2026-07-17 10:19:43 +08:00
search.go feat(agent): enhance suggested questions API with tag scopes 2026-07-17 10:19:43 +08:00
search_entity.go feat(logger): implement LLM debug logging functionality 2026-04-16 23:15:02 +08:00
search_parallel.go feat(web-search): refactor web search provider 2026-03-31 20:22:34 +08:00
web_fetch.go feat(web-search): refactor web search provider 2026-03-31 20:22:34 +08:00
wiki_boost.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00