Feat: Add TagFeatureItem #4368 (#4432)

### What problem does this PR solve?

Feat: Add TagFeatureItem #4368

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-01-09 18:24:27 +08:00
committed by GitHub
parent dac54ded96
commit 300d8ecf51
15 changed files with 259 additions and 123 deletions

View File

@ -95,27 +95,11 @@ export const useUpdateChunk = () => {
const { documentId } = useGetKnowledgeSearchParams();
const onChunkUpdatingOk = useCallback(
async ({
content,
keywords,
available_int,
question_kwd,
tag_kwd,
}: {
content: string;
keywords: string;
available_int: number;
question_kwd: string;
tag_kwd: string;
}) => {
async (params: IChunk) => {
const code = await createChunk({
content_with_weight: content,
...params,
doc_id: documentId,
chunk_id: chunkId,
important_kwd: keywords, // keywords
available_int,
question_kwd,
tag_kwd,
});
if (code === 0) {