Merged
Conversation
7df9e85 to
5a7c22f
Compare
Member
leoguillaume
left a comment
There was a problem hiding this comment.
@sladinji merci pour le travail de reprise quelque éléments de review à ce stade pour avancer :
- mettre init dans une classe dédiée à la racine de helpers
- supprimer le endpoint multiagent
- intégrer l'appel à la classe multiagent comme une méthode ici dans la classe DocumentManager :
https://github.com/etalab-ia/albert-api/blob/a84041f2f9e02e9179d2d10cb675a2931e1a4224/app/helpers/_documentmanager.py#L404 - sortir la logique Qdrant et web search. Ca doit suivre la même logique que la classe websearch.
- mettre les prompts en attribut de la classe (cf classe web search)
- ajouter une documentation (en anglais) sur les différents méthode de rag dans le style de :
d655c3c to
b10844c
Compare
499d5d5 to
5de60bb
Compare
sladinji
commented
May 12, 2025
| docs_tmp = initial_docs[n_retry * window : (n_retry + 1) * window] | ||
| refs_tmp = initial_refs[n_retry * window : (n_retry + 1) * window] | ||
|
|
||
| inputs = ["(Extrait : " + ref + ") " + doc[:250] + "..." for doc, ref in zip(docs_tmp, refs_tmp)] |
Contributor
Author
There was a problem hiding this comment.
D'après mes tests, ça me semble compliqué d'avoir des réponses pertinentes sur des extraits limités à 250 caractères.
sladinji
commented
May 12, 2025
| content=answer, | ||
| metadata={ | ||
| "choice": choice, | ||
| "choice_desc": explain_choice[choice], |
Contributor
Author
There was a problem hiding this comment.
@leoguillaume j'ai remis sous cette forme pour matcher la signature de document_manager.search, j'ai mis des valeurs arbitraires pour score et id, dis ce que t'en dis.
added 8 commits
May 14, 2025 16:28
… search function signature
f080c66 to
9006e1e
Compare
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.
Pour l'instant le multiagent n'est pas encore intégré dans la partie search. Pour l'instant le code est juste mis à jour avec la branche main et des tests ont été ajoutés. Le code contient des méthodes non utilisées pour le rerank type (classic_rerank, llm_rerank), à voir si c'est à conserver.
Je n'ai pas une connaissance exact du fonctionnel attendu, et il faut donc vérifier les résultats renvoyés. Il me semble bizarre que le premier test d'intégration retourne "Des informations pertinentes ont été trouvées dans la base de données cherchée." alors qu'aucun document n'était ajouté à la collection.