feat: add matched question field to FAQ search results

This commit is contained in:
wizardchen
2026-01-21 17:58:06 +08:00
committed by lyingbug
parent 9b1381a844
commit faf1c9a37b
11 changed files with 75 additions and 9 deletions
+3
View File
@@ -31,6 +31,9 @@ type FAQEntry struct {
Score float64 `json:"score,omitempty"`
MatchType string `json:"match_type,omitempty"`
ChunkType string `json:"chunk_type"`
// MatchedQuestion is the actual question text that was matched in FAQ search
// Could be the standard question or one of the similar questions
MatchedQuestion string `json:"matched_question,omitempty"`
}
// FAQEntryPayload is used to create or update a FAQ entry.