forked from open-webui/open-webui
		
	feat: rag folder scan support
This commit is contained in:
		
							parent
							
								
									9f869f6573
								
							
						
					
					
						commit
						e07001e5f6
					
				
					 9 changed files with 350 additions and 12 deletions
				
			
		|  | @ -13,6 +13,7 @@ | |||
| 
 | ||||
| 	import EditDocModal from '$lib/components/documents/EditDocModal.svelte'; | ||||
| 	import AddFilesPlaceholder from '$lib/components/AddFilesPlaceholder.svelte'; | ||||
| 	import SettingsModal from '$lib/components/documents/SettingsModal.svelte'; | ||||
| 	let importFiles = ''; | ||||
| 
 | ||||
| 	let inputFiles = ''; | ||||
|  | @ -20,6 +21,7 @@ | |||
| 
 | ||||
| 	let tags = []; | ||||
| 
 | ||||
| 	let showSettingsModal = false; | ||||
| 	let showEditDocModal = false; | ||||
| 	let selectedDoc; | ||||
| 	let selectedTag = ''; | ||||
|  | @ -179,11 +181,38 @@ | |||
| 	}} | ||||
| /> | ||||
| 
 | ||||
| <SettingsModal bind:show={showSettingsModal} /> | ||||
| 
 | ||||
| <div class="min-h-screen max-h-[100dvh] w-full flex justify-center dark:text-white"> | ||||
| 	<div class=" py-2.5 flex flex-col justify-between w-full overflow-y-auto"> | ||||
| 		<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10"> | ||||
| 			<div class="mb-6 flex justify-between items-center"> | ||||
| 				<div class=" text-2xl font-semibold self-center">My Documents</div> | ||||
| 
 | ||||
| 				<div> | ||||
| 					<button | ||||
| 						class="flex items-center space-x-1 border border-gray-200 dark:border-gray-600 px-3 py-1 rounded-lg" | ||||
| 						type="button" | ||||
| 						on:click={() => { | ||||
| 							showSettingsModal = !showSettingsModal; | ||||
| 						}} | ||||
| 					> | ||||
| 						<svg | ||||
| 							xmlns="http://www.w3.org/2000/svg" | ||||
| 							viewBox="0 0 16 16" | ||||
| 							fill="currentColor" | ||||
| 							class="w-4 h-4" | ||||
| 						> | ||||
| 							<path | ||||
| 								fill-rule="evenodd" | ||||
| 								d="M6.955 1.45A.5.5 0 0 1 7.452 1h1.096a.5.5 0 0 1 .497.45l.17 1.699c.484.12.94.312 1.356.562l1.321-1.081a.5.5 0 0 1 .67.033l.774.775a.5.5 0 0 1 .034.67l-1.08 1.32c.25.417.44.873.561 1.357l1.699.17a.5.5 0 0 1 .45.497v1.096a.5.5 0 0 1-.45.497l-1.699.17c-.12.484-.312.94-.562 1.356l1.082 1.322a.5.5 0 0 1-.034.67l-.774.774a.5.5 0 0 1-.67.033l-1.322-1.08c-.416.25-.872.44-1.356.561l-.17 1.699a.5.5 0 0 1-.497.45H7.452a.5.5 0 0 1-.497-.45l-.17-1.699a4.973 4.973 0 0 1-1.356-.562L4.108 13.37a.5.5 0 0 1-.67-.033l-.774-.775a.5.5 0 0 1-.034-.67l1.08-1.32a4.971 4.971 0 0 1-.561-1.357l-1.699-.17A.5.5 0 0 1 1 8.548V7.452a.5.5 0 0 1 .45-.497l1.699-.17c.12-.484.312-.94.562-1.356L2.629 4.107a.5.5 0 0 1 .034-.67l.774-.774a.5.5 0 0 1 .67-.033L5.43 3.71a4.97 4.97 0 0 1 1.356-.561l.17-1.699ZM6 8c0 .538.212 1.026.558 1.385l.057.057a2 2 0 0 0 2.828-2.828l-.058-.056A2 2 0 0 0 6 8Z" | ||||
| 								clip-rule="evenodd" | ||||
| 							/> | ||||
| 						</svg> | ||||
| 
 | ||||
| 						<div class=" text-xs">Document Settings</div> | ||||
| 					</button> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 
 | ||||
| 			<div class=" flex w-full space-x-2"> | ||||
|  | @ -419,6 +448,8 @@ | |||
| 						</button> | ||||
| 					</div> | ||||
| 				</div> | ||||
| 
 | ||||
| 				<div class=" my-2.5" /> | ||||
| 			{/each} | ||||
| 
 | ||||
| 			{#if $documents.length > 0} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek