Add agent config message to RAG pages

This commit is contained in:
akhisud3195 2025-05-12 21:02:16 +05:30
parent 5036e52957
commit 718ec86f5b
2 changed files with 40 additions and 0 deletions

View file

@ -61,6 +61,26 @@ export function SourcesList({ projectId }: { projectId: string }) {
>
<div className="h-full overflow-auto px-4 py-4">
<div className="max-w-[1024px] mx-auto">
<div className="mb-6 p-4 bg-blue-50 dark:bg-blue-900/10 rounded-lg border border-blue-200 dark:border-blue-800">
<div className="flex items-start gap-3">
<svg
className="w-5 h-5 text-blue-500 mt-0.5"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
<div className="text-sm text-blue-700 dark:text-blue-300">
To use these data sources with your agents, go to the RAG tab inside individual agent settings.
</div>
</div>
</div>
{loading && (
<div className="flex items-center gap-2">
<Spinner size="sm" />

View file

@ -135,6 +135,26 @@ export function Form({
>
<div className="h-full overflow-auto px-4 py-4">
<div className="max-w-[768px] mx-auto flex flex-col gap-4">
<div className="p-4 bg-blue-50 dark:bg-blue-900/10 rounded-lg border border-blue-200 dark:border-blue-800">
<div className="flex items-start gap-3">
<svg
className="w-5 h-5 text-blue-500 mt-0.5"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
<div className="text-sm text-blue-700 dark:text-blue-300">
To use these data sources with your agents, go to the RAG tab inside individual agent settings.
</div>
</div>
</div>
<Dropdown
label="Select type"
value={sourceType}