Add backend functionality for news fetching, processing, and recommendations

- Implemented NewsFetcher class to fetch articles from RSS feeds and clean HTML content.
- Added EmbeddingGenerator for generating embeddings using Cohere API.
- Created VectorStore for storing and retrieving articles using Pinecone.
- Developed NewsRecommender for analyzing articles and generating insights with Groq.
- Set up FastAPI application with endpoints for fetching news and providing recommendations.
- Configured logging for better traceability and debugging.
- Updated .gitignore to include environment variables and data directories.
- Added requirements.txt for project dependencies.
This commit is contained in:
boladeE
2025-04-14 21:44:43 +01:00
parent 042f2386a0
commit e3d00bb4dc
8 changed files with 590 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
fastapi==0.109.2
uvicorn==0.27.1
feedparser==6.0.10
cohere==4.47
pinecone-client==3.0.2
python-dotenv==1.0.1
groq==0.4.2
pydantic==2.6.3
python-multipart==0.0.9
httpx==0.27.0
beautifulsoup4==4.12.3