Add websearch#86
Merged
Merged
Conversation
fabnemEPFL
requested changes
Jun 27, 2025
fabnemEPFL
left a comment
Collaborator
There was a problem hiding this comment.
Great work so far, sounds promising. Some changes needed.
I have to go so there will be a follow-up review later today
fabnemEPFL
requested changes
Jun 27, 2025
fabnemEPFL
reviewed
Jun 30, 2025
fabnemEPFL
reviewed
Jul 13, 2025
fabnemEPFL
reviewed
Aug 13, 2025
fabnemEPFL
left a comment
Collaborator
There was a problem hiding this comment.
I will make soon the changes related to the few additional comments I added
| n_loops: int = 2 | ||
| max_searches: int = 10 | ||
| llm_config: Dict[str, Any] = field( | ||
| default_factory=lambda: {"llm_name": "gpt-4", "max_new_tokens": 1200} |
Collaborator
There was a problem hiding this comment.
Make it a field of type LLMConfig
JCHAVEROT
pushed a commit
to JCHAVEROT/mmore
that referenced
this pull request
Jun 19, 2026
Co-authored-by: fabnemEPFL <fabrice.nemo@epfl.ch> Co-authored-by: fabnemEPFL <117652591+fabnemEPFL@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Websearch on RAG output
Input:
Output file from the RAG model
Output:
How to Run
Key Parameters
n_loops: Number of search loopsmax_searches: Maximum number of sources retrieved per web searchPipeline Overview
Load Input Data
Generate Initial Summary
Iterative Search and Analysis (Repeated
n_loopstimes)Formulate a refined search query by combining the original query, current knowledge, and previous findings (if any).
Retrieve relevant web results using DuckDuckGo.
Use the language model (LLM) to integrate new web information with existing knowledge, updating the summary accordingly.
Save Final Results