mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-20 12:56:55 +08:00
### What problem does this PR solve? Feat: Display inline (non-quoted) images in the chat and search modules #7623 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -20,6 +20,7 @@ import {
|
||||
} from '@/hooks/knowledge-hooks';
|
||||
import { useGetPaginationWithRouter } from '@/hooks/logic-hooks';
|
||||
import { api_host } from '@/utils/api';
|
||||
import { showImage } from '@/utils/chat';
|
||||
import { useCallback, useState } from 'react';
|
||||
import styles from './index.less';
|
||||
|
||||
@ -49,12 +50,6 @@ interface IProps {
|
||||
handleTesting: (documentIds?: string[]) => Promise<any>;
|
||||
}
|
||||
|
||||
const ShowImageFields = ['image', 'table'];
|
||||
|
||||
function showImage(filed: string) {
|
||||
return ShowImageFields.some((x) => x === filed);
|
||||
}
|
||||
|
||||
const TestingResult = ({ handleTesting }: IProps) => {
|
||||
const [selectedDocumentIds, setSelectedDocumentIds] = useState<string[]>([]);
|
||||
const { documents, chunks, total } = useSelectTestingResult();
|
||||
|
||||
Reference in New Issue
Block a user