feat(repository): enhance document indexing with isEnabled and isRecommended fields

- Added `IsEnabled` and `IsRecommended` fields to the document indexing process in both ElasticFaiss and Elasticsearch repositories, improving the flexibility and functionality of document retrieval.
- Updated the data extraction process to include these new fields, ensuring they are correctly populated from the source data.
- Adjusted the indexing logic in the knowledge service to reflect these changes, maintaining consistency across the application.
This commit is contained in:
wizardchen
2026-03-02 15:03:54 +08:00
committed by lyingbug
parent b1fa96c175
commit 7b8a78aa2a
3 changed files with 23 additions and 0 deletions
+1
View File
@@ -487,6 +487,7 @@ func (s *DataTableSummaryService) indexToVectorDB(
ChunkID: chunk.ID,
KnowledgeID: chunk.KnowledgeID,
KnowledgeBaseID: chunk.KnowledgeBaseID,
IsEnabled: true,
})
}