Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Documentation links for filesearch #3145

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading