Skip to content

Commit

Permalink
Merge pull request #3145 from glific/filesearch/docs
Browse files Browse the repository at this point in the history
Added Documentation links for filesearch
  • Loading branch information
kurund authored Nov 25, 2024
2 parents 87c2bf8 + 8d47cd1 commit c4ae135
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/common/HelpData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export const triggerInfo: HelpDataProps = {
};

export const searchInfo: HelpDataProps = {
heading:
'Glific provides search functionality to NGO staff to find contacts from a large set of contacts list.',
heading: 'Glific provides search functionality to NGO staff to find contacts from a large set of contacts list.',

link: 'https://glific.github.io/docs/docs/Product%20Features/Searches',
};
Expand Down Expand Up @@ -105,5 +104,5 @@ export const blockedContactsInfo: HelpDataProps = {
export const assistantsInfo: HelpDataProps = {
heading:
'Assistants can call OpenAI’s models with specific instructions to tune their personality and capabilities. Assistants can access multiple tools in parallel. Assistants can access files in several formats as part of their creation. When using tools, Assistants can also create files (e.g., images, spreadsheets, etc) and cite files they reference in the Messages they create.',
link: 'https://glific.github.io/docs/docs/Product%20Features/Flows/Flow%20Variables/Flow%20variables%20vs%20Contact%20variables', // Replace with the actual Glific documentation link
link: 'https://glific.github.io/docs/docs/Integrations/RAG%20using%20OpenAI%20file%20search%20assistant', // Replace with the actual Glific documentation link
};
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ interface AssistantOptionsProps {

const temperatureInfo =
'Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.';

const filesInfo =
'Enables the assistant with knowledge from files that you or your users upload. Once a file is uploaded, the assistant automatically decides when to retrieve content based on user requests.';
export const AssistantOptions = ({ currentId, options, setOptions }: AssistantOptionsProps) => {
const [showUploadDialog, setShowUploadDialog] = useState(false);
const [files, setFiles] = useState<any[]>([]);
Expand Down Expand Up @@ -171,6 +172,11 @@ export const AssistantOptions = ({ currentId, options, setOptions }: AssistantOp
<div className={styles.FilesHeader}>
<Typography variant="subtitle2" className={styles.Label} data-testid="inputLabel">
Files
<HelpIcon
helpData={{
heading: filesInfo,
}}
/>
</Typography>
<Button data-testid="addFiles" onClick={() => setShowUploadDialog(true)} variant="outlined">
<AddIcon />
Expand Down

0 comments on commit c4ae135

Please sign in to comment.