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

FEATURE: Search powered by LLMs (RAG) #3407

Open
flavienbwk opened this issue Oct 16, 2023 · 6 comments
Open

FEATURE: Search powered by LLMs (RAG) #3407

flavienbwk opened this issue Oct 16, 2023 · 6 comments
Labels
feature-request Requests for new features or enhancements of existing features

Comments

@flavienbwk
Copy link

flavienbwk commented Oct 16, 2023

Is your feature request related to a problem? Please describe.

Get better results from user input with interpreted responses.

Describe the solution you'd like

Integrate an LLM in Aleph (per-paragraph vectorization or keyword search + summarization) to perform search queries from user input and find the best-related documents/paragraphs.

Use of models such as Llama 2 or Mistral AI 7B.

Describe alternatives you've considered

@flavienbwk flavienbwk added feature-request Requests for new features or enhancements of existing features triage These issues need to be reviewed by the Aleph team labels Oct 16, 2023
@Rosencrantz
Copy link
Contributor

The challenge with utilizing machine learning to summerize documents or search and provide feedback is that these systems are prone to error.

I think we need to take a stance on how we position ourselves when it comes to the use of AI inside of tools such as Aleph. Simply leaping in without due care could have negative implications.

@Rosencrantz Rosencrantz removed the triage These issues need to be reviewed by the Aleph team label Oct 24, 2023
@flavienbwk
Copy link
Author

flavienbwk commented Oct 24, 2023

If this is about ethical concerns, I don't think it's related with the technical implementation of a RAG in Aleph (processing of docs by AI). The two works (which are both important) can be carried out in parallel.

About this, we could think of warning the users about the LLM only guiding them to find the best document or paragraph, but be careful about its feedback (as any other commercial LLM service today available; e.g: ChatGPT).

@Rosencrantz
Copy link
Contributor

For those coming to this later and asking the question "What does RAG stand for?" this provides a good overview: https://www.promptingguide.ai/techniques/rag

@Rosencrantz
Copy link
Contributor

@flavienbwk Seems like you have significant knowledge in this area. Have you considered putting together a pull request?

@flavienbwk
Copy link
Author

Sure I've considered and would love ahah !
But I don't have the time right now. Nevertheless, I hope this issue will open up the subject for this project, and see if there is any interest from the community.

@alex-ac-ir
Copy link

@flavienbwk have you tried https://github.com/alephdata/document-categorization , I think @Rosencrantz was writing about this approach.
Me personally, looking for an assistant that can answer a questions. So it's not a for improving search query or document categorization, rather than a data fusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Requests for new features or enhancements of existing features
Projects
None yet
Development

No branches or pull requests

3 participants