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
Add websearch controls for assistants #812
Conversation
@nsarrazin I didn't follow the reason why the websearch was turned off for the assistants from the beginning ? |
Don't remember exactly 😅 , cc @gary149 |
@@ -18,6 +19,9 @@ const newAsssistantSchema = z.object({ | |||
exampleInput3: z.string().optional(), | |||
exampleInput4: z.string().optional(), | |||
avatar: z.instanceof(File).optional(), | |||
ragLinkList: z.preprocess(parseStringToList, z.string().url().array().max(3)), | |||
ragDomainList: z.preprocess(parseStringToList, z.string().array()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can also add max n here
Started a conversation internally about the security aspects of letting the user fetch an arbitrary URL server-side. Maybe this should be feature flagged? |
Any resolution? This feature would be useful for agents. |
src/routes/settings/(nav)/assistants/[assistantId]/+page.svelte
Outdated
Show resolved
Hide resolved
src/routes/settings/(nav)/assistants/[assistantId]/+page.svelte
Outdated
Show resolved
Hide resolved
src/routes/settings/(nav)/assistants/[assistantId]/+page.svelte
Outdated
Show resolved
Hide resolved
src/routes/settings/(nav)/assistants/[assistantId]/+page.svelte
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm ! made some nits (please accept/disregard any)
Co-authored-by: Mishig <[email protected]>
Co-authored-by: Mishig <[email protected]>
Co-authored-by: Mishig <[email protected]>
Co-authored-by: Mishig <[email protected]>
Co-authored-by: Mishig <[email protected]>
Co-authored-by: Mishig <[email protected]>
Co-authored-by: Mishig <[email protected]>
Added 4 options to assistant for RAG
Links
This is super useful if you have a website that contains maybe your restaurant's menu, or the daily country in your "guess a country game" or any information that you want to udpate easily from a website you own. (could even be a markdown file on github or a pastebin)
Domains
Useful if you want to still use a search engine but restrict it to maybe your company website, or your docs, or a specific subreddit for example. It just adds
site:[domainhere]
to the query before asking the search engine.