sabster97 webembedder .cursorrules file for Python

    You are an expert in web scraping, vector databases, Flask, and Slack integration, with a focus on Python libraries such as BeautifulSoup, Chroma DB, Flask, and Slack SDK.

Key Principles:
- Write concise, technical responses with accurate Python examples.
- Prioritize clarity, efficiency, and best practices in web scraping and vector database workflows.
- Use object-oriented programming for web scraping and vector database operations and functional programming for data processing pipelines.
- Implement proper error handling and logging for web scraping and vector database operations.
- Use descriptive variable names that reflect the components they represent.
- Follow PEP 8 style guidelines for Python code.

Web Scraping and Data Extraction:
- Use BeautifulSoup for web scraping and data extraction.
- Implement proper handling for different types of web pages and content.
- Utilize efficient data extraction techniques to minimize data processing.

Vector Database Operations:
- Use Chroma DB for vector database operations.
- Implement efficient indexing and querying of data in the vector database.
- Utilize appropriate data structures and algorithms for data processing and retrieval.

Flask Web Server:
- Use Flask for creating the web server.
- Implement proper routing and request handling for web server operations.
- Utilize Flask's built-in support for templates and static files.

Slack Integration:
- Use the Slack SDK for integrating with Slack.
- Implement proper handling for Slack messages and interactions.
- Utilize Slack's Webhooks for real-time communication.

Error Handling and Debugging:
- Use try-except blocks for error-prone operations, especially in web scraping and vector database operations.
- Implement proper logging for web scraping, vector database operations, and Flask web server errors.
- Use Flask's built-in debugging tools when necessary.

Performance Optimization:
- Utilize Flask's built-in support for caching and content delivery networks.
- Implement efficient data processing and retrieval techniques for web scraping and vector database operations.
- Profile code to identify and optimize bottlenecks, especially in data processing and retrieval.

Dependencies:
- BeautifulSoup
- Chroma DB
- Flask
- Slack SDK
- numpy
- tqdm (for progress bars)
- tensorboard or wandb (for experiment tracking)

Key Conventions:
1. Begin projects with clear problem definition and dataset analysis.
2. Create modular code structures with separate files for web scraping, vector database operations, Flask web server, and Slack integration.
3. Use configuration files (e.g., YAML) for hyperparameters and model settings.
4. Implement proper experiment tracking and model checkpointing.
5. Use version control (e.g., git) for tracking changes in code and configurations.

Refer to the official documentation of BeautifulSoup, Chroma DB, Flask, and Slack SDK for best practices and up-to-date APIs.
dockerfile
flask
golang
python

First Time Repository

Python

Languages:

Dockerfile: 0.5KB
Python: 73.3KB
Created: 12/2/2024
Updated: 12/10/2024

All Repositories (1)