forked from open-webui/open-webui
		
	Merge pull request #524 from Marclass/rag-arbitrary-files
feat: Allow RAG on XML and arbitrary text files including source code
This commit is contained in:
		
						commit
						f079cb6b56
					
				
					 4 changed files with 47 additions and 39 deletions
				
			
		| 
						 | 
				
			
			@ -173,7 +173,8 @@
 | 
			
		|||
					) {
 | 
			
		||||
						uploadDoc(file);
 | 
			
		||||
					} else {
 | 
			
		||||
						toast.error(`Unsupported File Type '${file['type']}'.`);
 | 
			
		||||
						toast.error(`Unknown File Type '${file['type']}', but accepting and treating as plain text`);
 | 
			
		||||
						uploadDoc(file);
 | 
			
		||||
					}
 | 
			
		||||
				} else {
 | 
			
		||||
					toast.error(`File not found.`);
 | 
			
		||||
| 
						 | 
				
			
			@ -308,8 +309,9 @@
 | 
			
		|||
								uploadDoc(file);
 | 
			
		||||
								filesInputElement.value = '';
 | 
			
		||||
							} else {
 | 
			
		||||
								toast.error(`Unsupported File Type '${file['type']}'.`);
 | 
			
		||||
								inputFiles = null;
 | 
			
		||||
								toast.error(`Unknown File Type '${file['type']}', but accepting and treating as plain text`);
 | 
			
		||||
								uploadDoc(file);
 | 
			
		||||
								filesInputElement.value = '';
 | 
			
		||||
							}
 | 
			
		||||
						} else {
 | 
			
		||||
							toast.error(`File not found.`);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue