refactor: Remove 3 non-working API endpoints for demo readiness
🔧 REMOVED NON-WORKING ENDPOINTS: - Removed GET /recommend-news (article ID recommendations) - Removed POST /analyze-article (AI article analysis) - Removed POST /generate-insights (AI insights generation) - Removed associated request models (AnalyzeRequest, InsightsRequest) 📝 UPDATED DOCUMENTATION: - Updated README.md from 13 to 10 API endpoints - Updated all endpoint counts throughout documentation - Reorganized API sections to reflect current functionality - Maintained accurate system metrics (337 articles) ✅ CURRENT WORKING ENDPOINTS (10): - Core System (3): /, /health, /stats - News Management (2): /fetch-news, /articles - Recommendations (3): /recommend-by-query, /recommend-by-interests, /trending - Search & Discovery (1): /search - AI Analysis (1): /ai-status 🚀 System now ready for live demo with 100% working endpoints!
This commit is contained in:
+7
-28
@@ -9,7 +9,7 @@ DS Task AI News is a fully functional AI-powered news retrieval system that aggr
|
||||
**System Metrics:**
|
||||
- **337 articles** successfully processed and indexed (actively growing)
|
||||
- **3 RSS sources** actively monitored (BBC, TechCrunch, WIRED)
|
||||
- **13 API endpoints** fully functional (100% success rate)
|
||||
- **10 API endpoints** fully functional (100% success rate)
|
||||
- **384-dimensional** real Sentence Transformers embeddings
|
||||
- **FAISS vector database** with semantic similarity search
|
||||
- **Groq LLM integration** active and operational
|
||||
@@ -82,7 +82,7 @@ DS_Task_AI_News/
|
||||
│-- LICENSE # License information
|
||||
```
|
||||
|
||||
## API Endpoints (13 Total)
|
||||
## API Endpoints (10 Total)
|
||||
|
||||
### **Core System Endpoints (3)**
|
||||
|
||||
@@ -114,13 +114,7 @@ DS_Task_AI_News/
|
||||
- **Response**: Paginated articles with metadata and filtering info
|
||||
- **Use Case**: Browse articles, implement pagination, filter by criteria
|
||||
|
||||
### **Recommendation Endpoints (4)**
|
||||
|
||||
#### `GET /recommend-news`
|
||||
- **Purpose**: Get recommendations based on a specific article ID
|
||||
- **Parameters**: `article_id` (required), `top_k` (default: 5)
|
||||
- **Response**: Similar articles with similarity scores
|
||||
- **Use Case**: "More like this" functionality
|
||||
### **Recommendation Endpoints (3)**
|
||||
|
||||
#### `POST /recommend-by-query`
|
||||
- **Purpose**: Get recommendations based on text query
|
||||
@@ -149,19 +143,7 @@ DS_Task_AI_News/
|
||||
- **Features**: Semantic similarity, date filtering, source filtering, content inclusion
|
||||
- **Use Case**: Intelligent search, content discovery
|
||||
|
||||
### **AI Analysis Endpoints (3)**
|
||||
|
||||
#### `POST /analyze-article`
|
||||
- **Purpose**: AI-powered analysis of a specific article
|
||||
- **Body**: `{"article_id": "article_id"}`
|
||||
- **Response**: AI-generated summary, sentiment analysis, key insights
|
||||
- **Use Case**: Content analysis, automated insights
|
||||
|
||||
#### `POST /generate-insights`
|
||||
- **Purpose**: Generate AI insights from multiple recent articles
|
||||
- **Body**: `{"article_count": 10}`
|
||||
- **Response**: Trend analysis, topic summaries, market insights
|
||||
- **Use Case**: Market research, trend analysis, content curation
|
||||
### **AI Analysis Endpoints (1)**
|
||||
|
||||
#### `GET /ai-status`
|
||||
- **Purpose**: Check AI system status and capabilities
|
||||
@@ -265,7 +247,7 @@ Our implementation includes:
|
||||
|
||||
## 🔌 API Endpoints
|
||||
|
||||
### All 13 API Endpoints
|
||||
### All 10 API Endpoints
|
||||
|
||||
#### **Core System (3)**
|
||||
* `GET /` - API health check and version info
|
||||
@@ -276,8 +258,7 @@ Our implementation includes:
|
||||
* `POST /fetch-news` - Fetch latest news from all RSS sources
|
||||
* `GET /articles?limit=N&offset=M` - Get articles with pagination and advanced filtering
|
||||
|
||||
#### **Recommendations (4)**
|
||||
* `GET /recommend-news?article_id=X&top_k=N` - Get recommendations by article ID
|
||||
#### **Recommendations (3)**
|
||||
* `POST /recommend-by-query` - Get recommendations based on text query
|
||||
* `POST /recommend-by-interests` - Get recommendations by user interests
|
||||
* `GET /trending?top_k=N` - Get N most trending articles
|
||||
@@ -285,9 +266,7 @@ Our implementation includes:
|
||||
#### **Search & Discovery (1)**
|
||||
* `POST /search` - Advanced semantic search with multiple filters
|
||||
|
||||
#### **AI Analysis (3)**
|
||||
* `POST /analyze-article` - AI-powered article analysis (summary, sentiment, keywords)
|
||||
* `POST /generate-insights` - Generate AI insights from multiple articles
|
||||
#### **AI Analysis (1)**
|
||||
* `GET /ai-status` - Check AI system status and capabilities
|
||||
|
||||
### Example Responses
|
||||
|
||||
Reference in New Issue
Block a user