Skip to content

[Rag-tools] create WS - #475

Open
Luc-Ank wants to merge 13 commits into
mainfrom
services/rag-tools/create-ws
Open

[Rag-tools] create WS#475
Luc-Ank wants to merge 13 commits into
mainfrom
services/rag-tools/create-ws

Conversation

@Luc-Ank

@Luc-Ank Luc-Ank commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@parmentf parmentf added the enhancement New feature or request label Aug 27, 2026

@parmentf parmentf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le bug == dans reformulate.py doit être corrigé en priorité.
La duplication de code est un problème structurel qui mérite d'être amélioré avant merge.

Important

C'est une grosse revue de code, il faut déplier les commentaires pour les voir tous.

Comment thread services/rag-tools/v1/reformulate.py Outdated
Comment thread services/rag-tools/v1/embedding.py
Comment thread services/rag-tools/v1/embedding_api.py Outdated
Comment thread services/rag-tools/v1/embedding_api.ini
# des appels en parallèle) — contrairement à vectorize.py, il ne s'agit pas
# d'un batch envoyé en un seul appel API, mais de N appels individuels
# exécutés en parallèle au sein du lot.
BATCH_SIZE = 32

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 thought (non-blocking): ‏Le LLM qui m'aide à faire la review est perplexe (et j'avoue ne pas avoir un avis tranché):

pas de contrôle de rate-limit côté client

L'appel API distant n'a que MAX_RETRIES = 4 avec backoff exponentiel. Si le rate-limit est constant, on va spammer l'API avec 8 workers × BATCH_SIZE=32. Une implémentation de token bucket ou un ThreadPoolExecutor avec Semaphore serait plus prudent.

Comment on lines +2 to +4
post.responses.default.description = Rag
post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream
post.summary = Rag

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

polish: ‏summaries et descriptions d'un mot (« Rag ») — peu utiles dans swagger.

À développer.

Comment thread services/rag-tools/v1/classification.py
Comment thread services/rag-tools/config.json
Comment thread services/rag-tools/v1/rag.py Outdated
Comment thread services/rag-tools/v1/reformulate.py
Luc-Ank and others added 3 commits September 1, 2026 15:32
Co-authored-by: François Parmentier <francois.parmentier@gmail.com>
Co-authored-by: François Parmentier <francois.parmentier@gmail.com>
Co-authored-by: François Parmentier <francois.parmentier@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants