feat: 支持FAQ两级优先级标签过滤

添加FAQ搜索支持两级优先级标签过滤功能,新增first_priority_tag_ids和second_priority_tag_ids字段,更新各检索器实现以支持按标签ID过滤,优化搜索结果排序确保优先级标签结果优先展示。
This commit is contained in:
wizardchen
2025-12-30 16:15:09 +08:00
committed by lyingbug
parent 9e51f85e55
commit ac00206e77
16 changed files with 307 additions and 56 deletions
@@ -20,6 +20,7 @@ type QdrantVectorEmbedding struct {
ChunkID string `json:"chunk_id"`
KnowledgeID string `json:"knowledge_id"`
KnowledgeBaseID string `json:"knowledge_base_id"`
TagID string `json:"tag_id"`
Embedding []float32 `json:"embedding"`
IsEnabled bool `json:"is_enabled"`
}