mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-24 23:46:52 +08:00
### What problem does this PR solve? Feat: Move the github icon to the right #9869 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -122,18 +122,16 @@ export const useFetchAgentListByPage = () => {
|
||||
: [];
|
||||
const owner = filterValue.owner;
|
||||
|
||||
const requestParams = {
|
||||
const requestParams: Record<string, any> = {
|
||||
keywords: debouncedSearchString,
|
||||
page_size: pagination.pageSize,
|
||||
page: pagination.current,
|
||||
canvas_category:
|
||||
canvasCategory.length === 1 ? canvasCategory[0] : undefined,
|
||||
owner_ids: '',
|
||||
};
|
||||
|
||||
if (Array.isArray(owner) && owner.length > 0) {
|
||||
requestParams.owner_ids =
|
||||
`${owner[0]}` + owner.slice(1).map((id) => `&owner_ids=${id}`);
|
||||
requestParams.owner_ids = owner.join(',');
|
||||
}
|
||||
|
||||
const { data, isFetching: loading } = useQuery<{
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import { IconFontFill } from '@/components/icon-font';
|
||||
import { RAGFlowAvatar } from '@/components/ragflow-avatar';
|
||||
import { useTheme } from '@/components/theme-provider';
|
||||
import { Button } from '@/components/ui/button';
|
||||
@ -20,7 +21,6 @@ import {
|
||||
CircleHelp,
|
||||
Cpu,
|
||||
File,
|
||||
Github,
|
||||
House,
|
||||
Library,
|
||||
MessageSquareText,
|
||||
@ -114,15 +114,6 @@ export function Header() {
|
||||
className="size-10 mr-[12] cursor-pointer"
|
||||
onClick={handleLogoClick}
|
||||
/>
|
||||
<a
|
||||
className="flex items-center gap-1.5 text-text-secondary"
|
||||
target="_blank"
|
||||
href="https://github.com/infiniflow/ragflow"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<Github className="size-4" />
|
||||
{/* <span className=" text-base">21.5k stars</span> */}
|
||||
</a>
|
||||
</div>
|
||||
<Segmented
|
||||
options={options}
|
||||
@ -130,6 +121,20 @@ export function Header() {
|
||||
onChange={handleChange}
|
||||
></Segmented>
|
||||
<div className="flex items-center gap-5 text-text-badge">
|
||||
<a
|
||||
target="_blank"
|
||||
href="https://discord.com/invite/NjYzJD3GM3"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<IconFontFill name="a-DiscordIconSVGVectorIcon"></IconFontFill>
|
||||
</a>
|
||||
<a
|
||||
target="_blank"
|
||||
href="https://github.com/infiniflow/ragflow"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<IconFontFill name="GitHub"></IconFontFill>
|
||||
</a>
|
||||
<DropdownMenu>
|
||||
<DropdownMenuTrigger>
|
||||
<div className="flex items-center gap-1">
|
||||
|
||||
@ -1705,7 +1705,6 @@ This delimiter is used to split the input text into several text pieces echo of
|
||||
regularExpressions: 'Regular Expressions',
|
||||
overlappedPercent: 'Overlapped percent',
|
||||
searchMethod: 'Search method',
|
||||
filenameEmbdWeight: 'Filename embd weight',
|
||||
begin: 'File',
|
||||
parserMethod: 'Parser method',
|
||||
systemPrompt: 'System Prompt',
|
||||
@ -1771,6 +1770,11 @@ Important structured information may include: names, dates, locations, events, k
|
||||
cancel: 'Cancel',
|
||||
swicthPromptMessage:
|
||||
'The prompt word will change. Please confirm whether to abandon the existing prompt word?',
|
||||
tokenizerSearchMethodOptions: {
|
||||
full_text: 'Full-text',
|
||||
embedding: 'Embedding',
|
||||
},
|
||||
filenameEmbeddingWeight: 'Filename embedding weight',
|
||||
tokenizerFieldsOptions: {
|
||||
text: 'Text',
|
||||
keywords: 'Keywords',
|
||||
|
||||
@ -29,12 +29,15 @@ export const FormSchema = z.object({
|
||||
fields: z.string(),
|
||||
});
|
||||
|
||||
const SearchMethodOptions = buildOptions(TokenizerSearchMethod);
|
||||
|
||||
const TokenizerForm = ({ node }: INextOperatorForm) => {
|
||||
const { t } = useTranslation();
|
||||
const defaultValues = useFormValues(initialTokenizerValues, node);
|
||||
|
||||
const SearchMethodOptions = buildOptions(
|
||||
TokenizerSearchMethod,
|
||||
t,
|
||||
`dataflow.tokenizerSearchMethodOptions`,
|
||||
);
|
||||
const FieldsOptions = buildOptions(
|
||||
TokenizerFields,
|
||||
t,
|
||||
@ -67,7 +70,7 @@ const TokenizerForm = ({ node }: INextOperatorForm) => {
|
||||
</RAGFlowFormItem>
|
||||
<SliderInputFormField
|
||||
name="filename_embd_weight"
|
||||
label={t('dataflow.filenameEmbdWeight')}
|
||||
label={t('dataflow.filenameEmbeddingWeight')}
|
||||
max={0.5}
|
||||
step={0.01}
|
||||
></SliderInputFormField>
|
||||
|
||||
Reference in New Issue
Block a user