mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 10:04:14 -05:00
[PR #524] [MERGED] feat: Allow RAG on XML and arbitrary text files including source code #7158
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/524
Author: @Marclass
Created: 1/19/2024
Status: ✅ Merged
Merged: 1/19/2024
Merged by: @tjbck
Base:
main← Head:rag-arbitrary-files📝 Commits (7)
43d8466feat: Add RAG support for various programming languagescf6b3faremove html type and add js/css8dacc86Merge branch 'ollama-webui:main' into main9b63788Update constants.tsc7cee3eUpdate constants.ts6070e6badd svelte type to RAGaa1d386Allow any file to be used for RAG.📊 Changes
4 files changed (+46 additions, -38 deletions)
View changed files
📝
backend/apps/rag/main.py(+30 -31)📝
src/lib/components/chat/MessageInput.svelte(+5 -3)📝
src/lib/constants.ts(+7 -2)📝
src/routes/(app)/documents/+page.svelte(+4 -2)📄 Description
Improvement on #495 so we won't have to play wack a mole as browsers change file MIME types for source code files.
If a user uploads a file with an unknown type it will display a warning toast, but process it as a text file.
Here the codellama model is able to read the Ollama-webui RAG code and modify it.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.