You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0060e6d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/features/chat-conversations/rag/document-extraction/apachetika.md
+2-65Lines changed: 2 additions & 65 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,72 +101,9 @@ This is Tika Server. Please PUT
101
101
102
102
### 3. Verify the Integration
103
103
104
-
Alternatively, you can also try sending a filefor analysis to test the integration. You can test Apache Tika by sending a file for analysis using the `curl` command:
104
+
Upload a small PDF with selectable text to a knowledge base. Open the file's **Indexed text** tab and look for a sentence you recognize from the PDF. Open WebUI reads plain text files locally even when Tika is selected, so use a PDF to exercise the Tika extraction path.
105
105
106
-
```bash
107
-
curl -T test.txt http://localhost:9998/tika
108
-
```
109
-
110
-
Replace `test.txt` with the path to a text file on your local machine.
111
-
112
-
Apache Tika will respond with the detected metadata and content type of the file.
113
-
114
-
### Using a Script to Verify Apache Tika
115
-
116
-
If you want to automate the verification process, this script sends a file to Apache Tika and checks the response for the expected metadata. If the metadata is present, the script will output a success message along with the file's metadata; otherwise, it will output an error message and the response from Apache Tika.
117
-
118
-
```python
119
-
import requests
120
-
121
-
defverify_tika(file_path, tika_url):
122
-
try:
123
-
# Send the file to Apache Tika and verify the output
print("Apache Tika successfully analyzed the file.")
128
-
print("Response from Apache Tika:")
129
-
print(response.text)
130
-
else:
131
-
print("Error analyzing the file:")
132
-
print(f"Status code: {response.status_code}")
133
-
print(f"Response from Apache Tika: {response.text}")
134
-
exceptExceptionas e:
135
-
print(f"An error occurred: {e}")
136
-
137
-
if__name__=="__main__":
138
-
file_path ="test.txt"# Replace with the path to your file
139
-
tika_url ="http://localhost:9998/tika"
140
-
141
-
verify_tika(file_path, tika_url)
142
-
```
143
-
144
-
Instructions to run the script:
145
-
146
-
### Prerequisites
147
-
148
-
- Python 3.x must be installed on your system
149
-
-`requests` library must be installed (you can install it using pip: `pip install requests`)
150
-
- Apache Tika Docker container must be running (use `docker run -p 9998:9998 apache/tika` command)
151
-
- Replace `"test.txt"` with the path to the file you want to send to Apache Tika
152
-
153
-
### Running the Script
154
-
155
-
1. Save the script as `verify_tika.py` (e.g., using a text editor like Notepad or Sublime Text)
156
-
2. Open a terminal or command prompt
157
-
3. Navigate to the directory where you saved the script (using the `cd` command)
158
-
4. Run the script using the following command: `python verify_tika.py`
159
-
5. The script will output a message indicating whether Apache Tika is working correctly
160
-
161
-
:::note
162
-
163
-
Note: If you encounter any issues, ensure that the Apache Tika container is running correctly and that the file is being sent to the correct URL.
164
-
165
-
:::
166
-
167
-
### Conclusion
168
-
169
-
By following these steps, you can verify that Apache Tika is working correctly in a Docker environment. You can test the setup by sending a file for analysis, verifying the server is running with a GET request, or use a script to automate the process. If you encounter any issues, ensure that the Apache Tika container is running correctly and that the file is being sent to the correct URL.
106
+
If selectable text comes through but a scanned PDF is missing text, check the Tika server logs and its OCR setup. The PDF preview shows the original file. Use **Indexed text** to see what came back from extraction.
Copy file name to clipboardExpand all lines: docs/troubleshooting/rag.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,7 +207,8 @@ Open WebUI implements various limits to ensure system stability and prevent abus
207
207
***Folder Uploads:** Subject to the `FOLDER_MAX_FILE_COUNT`[environment variable](/reference/env-configuration/#folder_max_file_count) (no limit by default; only the browser enforces it). This limit applies to the number of files directly associated with a folder.
208
208
***Knowledge Base Uploads:**
209
209
***File Limit:** Subject to `RAG_FILE_MAX_SIZE` and the knowledge base [file limits](/features/workspace/knowledge#file-limits).
210
-
***RAG Enforcement:** All files uploaded to a Knowledge Base are automatically indexed. However, similar to chat uploads, Knowledge Bases can also be used with **Using Entire Document** (click the attachment in a chat), which feeds the full document content to the model instead of using vector search retrieval.
210
+
***Vector indexing:** By default, Open WebUI indexes files when they are added to a knowledge base. **Bypass Embedding and Retrieval** in **Settings > Documents** (admin section) skips vector indexing for both chat uploads and files added to knowledge bases. Open WebUI still extracts text from document uploads and stores it.
211
+
***Full-text attachments:** To use full text for a single attachment and keep indexing enabled, click the attachment in the chat and select **Using Entire Document**. For a file-backed knowledge base, full-text mode can include the extracted text of every file in the collection. Check the combined text against the model's context budget.
211
212
212
213
:::info
213
214
By separating these limits, administrators can better manage resource usage across different features. For example, you might want to allow larger uploads in a curated Knowledge Base while restricting the number of files in ad-hoc Folder uploads.
0 commit comments