mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-14 03:33:43 +08:00
Root cause: PageCitationWithRaw record only had id/pageId/chunkId/rawId/ paragraphIdx/anchorText/confidence — missing rawTitle, chunkOrdinal, startOffset, endOffset, snippet. Frontend displayed Source + Chunk ? for every card. Backend: - Extend PageCitationWithRaw with rawTitle, chunkOrdinal, startOffset, endOffset, snippet fields - Expand listWithRawByPageId SQL to LEFT JOIN mate_wiki_raw_material for title, JOIN mate_wiki_chunk for ordinal/offsets/content snippet (first 200 chars via SUBSTRING) Frontend: - CitationDrawer: replace hardcoded Source / Chunk ? / offset with i18n keys - Add 4 new i18n keys: citationUnknownSource, citationChunkN, citationChunkUnknown, citationOffset (zh-CN + en-US)
13 lines
519 B
Java
13 lines
519 B
Java
package vip.mate.wiki.dto;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
/**
|
|
* RFC-029: Citation record joined with the chunk's raw material ID.
|
|
*/
|
|
public record PageCitationWithRaw(Long id, Long pageId, Long chunkId, Long rawId,
|
|
Integer paragraphIdx, String anchorText, BigDecimal confidence,
|
|
String rawTitle, Integer chunkOrdinal,
|
|
Integer startOffset, Integer endOffset,
|
|
String snippet) {}
|