How to Use File Uploads, Links, and Web Search in Open WebUI
Open WebUI allows you to enhance your prompts by injecting external data directly into the AI's context window.
1. File Uploads: "Focused Retrieval" vs. "Entire Document"
Simply drag and drop files into a chat or use the + (plus) icon. After uploading a file, click on the file tag/icon directly inside the chat input bar to open its settings dropdown. Here you can choose between two processing modes:
π Focused Retrieval (this is the default)
- How it works: Open WebUI breaks the document into smaller chunks and extracts only the parts most relevant to your prompt.
- When to use: Use this for large files (books, long manuals, massive reports) where you only need answers to specific questions. It saves tokens and prevents the AI from getting overwhelmed.
π Entire Document
- How it works: Open WebUI injects the text of the entire document directly into the AI's context window.
- When to use: Use this for short or medium-sized files (code files, short articles, resumes, legal contracts) where the AI needs to understand the entire context at once, or when you need a full summary or translation.
2. Attaching Specific Web Pages
- The Golden Rule: Simply pasting a URL into the chat box will not workβthe AI cannot access the internet directly through text. You must use the built-in function to fetch the content.
- How to do it: Type
#followed immediately by the URL (e.g.,#https://example.com), or click the+(plus) icon and select Attach Webpage. Click on the file tag/icon to set "Focused Retrieval" or "Entire Document". - When to use: Use this when you want the AI to read and analyze one specific, known webpage. The URL must be publicly accessible (no paywalls or login screens).
3. Global Web Search
- How it works: Open WebUI has a built-in search feature, which is configured to use Google.
- How to use it: Click the
Integrationsicon next to the chat bar and toggle on Web Search. - When to use: Use this when you don't have a specific link, but need the AI to find up-to-date information, news, or live data from the internet using Google's search results before answering.
4. General Pro-Tips
- Context Limits: If you choose Entire Document, make sure your active LLM has a large enough context window to handle the full text length.
- Combine them: You can upload a guideline document using Focused Retrieval, attach a website link, and turn on Web Search at the same time for maximum data synthesis.