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
-d '{"query":"What is Deep Learning?","max_new_tokens":17,"top_k":10,"top_p":0.95,"typical_p":0.95,"temperature":0.01,"repetition_penalty":1.03,"streaming":true}' \
"messages": "What is the revenue of Nike in 2023?"
289
288
}'
290
289
```
@@ -296,49 +295,21 @@ If you want to update the default knowledge base, you can use the following comm
296
295
Update Knowledge Base via Local File Upload:
297
296
298
297
```bash
299
-
curl -X POST "http://${host_ip}:6007/v1/dataprep" \
298
+
curl -X POST "http://${host_ip}:6043/v1/dataprep" \
300
299
-H "Content-Type: multipart/form-data" \
301
-
-F "files=@./nke-10k-2023.pdf"
300
+
-F "files=@./your_file.pdf"
302
301
```
303
302
304
303
This command updates a knowledge base by uploading a local file for processing. Update the file path according to your environment.
305
304
306
305
Add Knowledge Base via HTTP Links:
307
306
308
307
```bash
309
-
curl -X POST "http://${host_ip}:6007/v1/dataprep" \
308
+
curl -X POST "http://${host_ip}:6043/v1/dataprep" \
310
309
-H "Content-Type: multipart/form-data" \
311
310
-F 'link_list=["https://opea.dev"]'
312
311
```
313
312
314
-
This command updates a knowledge base by submitting a list of HTTP links for processing.
315
-
316
-
Also, you are able to get the file list that you uploaded:
317
-
318
-
```bash
319
-
curl -X POST "http://${host_ip}:6008/v1/dataprep/get_file" \
320
-
-H "Content-Type: application/json"
321
-
```
322
-
323
-
To delete the file/link you uploaded:
324
-
325
-
```bash
326
-
# delete link
327
-
curl -X POST "http://${host_ip}:6009/v1/dataprep/delete_file" \
328
-
-d '{"file_path": "https://opea.dev"}' \
329
-
-H "Content-Type: application/json"
330
-
331
-
# delete file
332
-
curl -X POST "http://${host_ip}:6009/v1/dataprep/delete_file" \
333
-
-d '{"file_path": "nke-10k-2023.pdf"}' \
334
-
-H "Content-Type: application/json"
335
-
336
-
# delete all uploaded files and links
337
-
curl -X POST "http://${host_ip}:6009/v1/dataprep/delete_file" \
338
-
-d '{"file_path": "all"}' \
339
-
-H "Content-Type: application/json"
340
-
```
341
-
342
313
## 🚀 Launch the UI
343
314
344
315
To access the frontend, open the following URL in your browser: http://{host_ip}:5173. By default, the UI runs on port 5173 internally. If you prefer to use a different host port to access the frontend, you can modify the port mapping in the `compose.yaml` file as shown below:
0 commit comments