Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow RAG #3200

Closed
1 of 4 tasks
http403 opened this issue Jun 15, 2024 · 1 comment
Closed
1 of 4 tasks

Slow RAG #3200

http403 opened this issue Jun 15, 2024 · 1 comment

Comments

@http403
Copy link

http403 commented Jun 15, 2024

Bug Report

Description

Bug Summary:
Extremely slow RAG when having 100 documents.

Steps to Reproduce:

  1. Upload 100 documents. (I used Docker docs in MD format)
  2. Tag all with a common tag. (docker-docs or something make sense)
  3. Ask question about docker with (#docker-docs)

Expected Behavior:
Finish RAG search in seconds

Actual Behavior:
Waiting 30 minutes for it to iterate every single collection

Environment

  • Open WebUI Version: 0.3.2

  • Ollama (if applicable): 0.1.39

  • Operating System: Linux Mint w/ Docker

  • Browser (if applicable): Firefox 126

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.

Logs and Screenshots

Browser Console Logs:
N/A

Docker Container Logs:
N/A

Screenshots (if applicable):
N/A

Installation Method

Docker Compose

Additional Information

Discord Discussion

Alternative Solution

Manually concatenate all the documents into one single file to force it into a single collection.

Note

It is a design overlook more than a bug. The design of RAG doesn't consider scaling issue. For a complete set of documents, there isn't a need to have separate collections by each documents.

@tjbck
Copy link
Contributor

tjbck commented Jun 16, 2024

Duplicate #2044

@tjbck tjbck closed this as completed Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants