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

Remove duplicated RAG search results #27

Open
juntao opened this issue Dec 1, 2024 · 0 comments
Open

Remove duplicated RAG search results #27

juntao opened this issue Dec 1, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@juntao
Copy link
Collaborator

juntao commented Dec 1, 2024

We often have multiple vectors pointing to the same source document. When I have --qdrant-limit 3, it could find 3 different vectors that has the same source and hence include the same document in the system prompt 3 times.

The RAG server should check and remove duplicated source before inserting into the prompt. For example, if all 3 results are the same source, it should only insert the source into the system prompt ONCE.

@juntao juntao changed the title Remobe duplicated RAG search results Remove duplicated RAG search results Dec 1, 2024
@apepkuss apepkuss added the enhancement New feature or request label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants