8 Commits

Author SHA1 Message Date
boladeE 0b519dbef3 Refactor backend configuration by removing API key verification logic
- Removed unused API key header and verification function from config.py to streamline the configuration file.
- Cleaned up comments related to environment variable loading for better clarity.
2025-04-16 17:59:09 +01:00
boladeE 82fe3608d2 Refactor backend configuration and enhance news fetching functionality
- Introduced a Config dataclass in config.py to manage API keys, RSS feeds, and directory paths more effectively.
- Updated the NewsFetcher class to include retry logic for fetching articles from RSS feeds.
- Modified the EmbeddingGenerator and NewsRecommender classes to utilize the new configuration structure.
- Enhanced main.py to implement API token verification for secure access to news fetching and recommendations.
2025-04-16 17:55:36 +01:00
boladeE 0ff7dc52fd Refactor .gitignore and update RSS feed sources in config.py
- Removed data directories from .gitignore to streamline ignored files.
- Updated RSS_FEEDS in config.py to uncomment specific sources for news fetching.
2025-04-15 20:32:08 +01:00
boladeE bbd95a1713 Remove unused dummy files from processed and raw news directories to clean up the project structure. 2025-04-15 20:24:37 +01:00
boladeE bc485b44b8 Update README and backend functionality for improved news application
- Enhanced README.md with a clearer project overview, features, technologies used, and installation instructions.
- Updated vector dimension in config.py from 4096 to 1024 for Cohere embeddings.
- Modified main.py to serve HTML responses for the home page, news fetching, and recommendations.
- Improved error handling and ensured articles have links in the responses.
- Cleaned up news_fetcher.py by removing unnecessary print statements.
- Updated recommender.py to refine insights generation and summary extraction.
- Added Jinja2 for templating and improved the project structure for better organization.
- Included API documentation for better understanding of endpoints and usage.
2025-04-15 11:59:39 +01:00
boladeE e3d00bb4dc 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.
2025-04-14 21:44:43 +01:00
boladeE 042f2386a0 Setup File Structure 2025-04-14 18:24:14 +01:00
kowshik c158262a49 Initial Commit 2025-03-18 04:11:27 +06:00