Merged
Conversation
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.
Contenu
Description
Implémentation d'un système de dispatch intelligent d'articles aux utilisateurs basé sur la similarité sémantique des embeddings vectoriels. Les articles scrapés sont automatiquement dispatchés aux utilisateurs dont les mots-clés matchent (≥70% similarité cosinus).
Fonctionnalités Ajoutées
Moteur de Matching Intelligent
Base de Données
4 nouvelles tables PostgreSQL :
users- Gestion des utilisateursuser_keywords- Mots-clés centralisésuser_keyword_embeddings- Embeddings vectoriels des keywordsuser_article_delivery- Historique des dispatches avec scores de similaritéAPI (Serveur Rust)
13 routes ajoutées :
Articles (3 routes)
GET /articles- Liste des articlesGET /articles/:id- Détails d'un articleGET /articles/count- Nombre total d'articlesAuthentification (2 routes)
POST /auth/register- Création de compte utilisateurPOST /auth/login- Connexion avec JWT (60min)Gestion des Mots-clés (3 routes)
GET /users/:id/keywords- Liste des keywords d'un utilisateurPOST /users/:id/keywords- Ajouter un keywordDELETE /users/:user_id/keywords/:keyword_id- Supprimer un keywordFeed Personnalisé (1 route)
GET /users/:id/feed- Feed personnalisé avec articles matchésStatistiques (3 routes)
GET /users/:id/stats- Stats utilisateur (articles, keywords, avg similarity)GET /delivery/stats- Stats globales du systèmeGET /delivery/recent- 20 dernières deliveries système