[scielo-tools-18] Adicionar app ia#25
Open
gitnnolabs wants to merge 1 commit into
Open
Conversation
Collaborator
Author
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.









O que esse PR faz?
Adiciona o app Django
iade forma autônoma e reusável, com modelos de configuração de provedores (Gemini, Ollama, HuggingFace), serviço de orquestração LLM, tarefas de download, exceções de domínio, utilitários e integração com Wagtail Admin. Mantém o grupoIA Modelsno menu de Settings do Wagtail para preservar o comportamento padrão de navegação do admin. Também expõeIA Modelsno menu principal, sem ocultar entradas padrão já existentes no admin. Remove o filtro global de menu emcore/wagtail_hooks.pyque mantinha apenassps_package_validation, restaurando a navegação padrão completa do Wagtail.Onde a revisão poderia começar?
ia/models.py,ia/wagtail_hooks.py,ia/service.py,config/settings/base.py,config/urls.py.Como este poderia ser testado manualmente?
pip install -r requirements/local.txt.python manage.py migrate.python manage.py check./admin/e confirmar o grupoIA Modelsem Settings com snippets HuggingFace, Ollama e Gemini.Settings > IA Models > HuggingFace.Model name:hugging-quants/Llama-3.2-3B-Instruct-Q4_K_M-GGUFModel file:llama-3.2-3b-instruct-q4_k_m.ggufHuggingFace token: token pessoal de leituraDownloadingno admin).Downloaded.Settings > IA Models > Ollama.http://localhost:11434.Fetch models, selecionar um modelo e validar preenchimento decontext_limit.from ia.service import LLMServicepara validar import.Settings > IA Models > Geminipara validar seleção de provider por prioridade.Como este poderia ser testado automaticamente?
pytest ia/tests.ia.models;LLMService;admin/ia/;IAAdminModelForm.save_allpara criação e atualização;IADatabaseRoutercom e semia_db;mark_referenceemark_referencescom sucesso e erro inesperado.Algum cenário de contexto que queira dar?
O app foi estruturado para funcionar sem dependências de
core.modelsecore.forms, permitindo reuso em outros projetos Django/Wagtail. Foi incluídoIADatabaseRouterpara cenários com banco dedicadoia_db.Screenshots
N/A
Quais são tickets relevantes?
N/A
Referências