This commit is contained in:
sanjeed5
2025-02-27 17:06:46 +05:30
parent ebf38c732b
commit d7eb6b8e64
+10 -14
View File
@@ -29,7 +29,7 @@ This repository contains Cursor rule files (.mdc) that provide AI-powered best p
## Prerequisites ## Prerequisites
1. Python 3.8+ 1. Python 3.8+
2. Required packages (install via `pip install -r requirements.txt`) 2. Required packages (install via `uv sync`)
3. Exa API key (set as environment variable `EXA_API_KEY`) 3. Exa API key (set as environment variable `EXA_API_KEY`)
4. LiteLLM API key (set as environment variable based on your provider) 4. LiteLLM API key (set as environment variable based on your provider)
@@ -61,39 +61,39 @@ processing:
### Basic Usage ### Basic Usage
```bash ```bash
python src/generate_mdc_files.py uv run src/generate_mdc_files.py
``` ```
### Test Mode (Process Only One Library) ### Test Mode (Process Only One Library)
```bash ```bash
python src/generate_mdc_files.py --test uv run src/generate_mdc_files.py --test
``` ```
### Process Specific Categories or Libraries ### Process Specific Categories or Libraries
```bash ```bash
python src/generate_mdc_files.py --category frontend_frameworks uv run src/generate_mdc_files.py --category frontend_frameworks
python src/generate_mdc_files.py --subcategory react uv run src/generate_mdc_files.py --subcategory react
python src/generate_mdc_files.py --library react uv run src/generate_mdc_files.py --library react
``` ```
### Adjust Parallel Processing ### Adjust Parallel Processing
```bash ```bash
python src/generate_mdc_files.py --workers 8 uv run src/generate_mdc_files.py --workers 8
``` ```
### Adjust Rate Limits ### Adjust Rate Limits
```bash ```bash
python src/generate_mdc_files.py --rate-limit 50 uv run src/generate_mdc_files.py --rate-limit 50
``` ```
### Verbose Logging ### Verbose Logging
```bash ```bash
python src/generate_mdc_files.py --verbose uv run src/generate_mdc_files.py --verbose
``` ```
## File Structure ## File Structure
@@ -127,8 +127,4 @@ The script maintains a progress file (`mdc_generation_progress.json`) to track w
- If you encounter API rate limit issues, adjust the `rate_limit_calls` in the configuration. - If you encounter API rate limit issues, adjust the `rate_limit_calls` in the configuration.
- If the script is using too much memory, reduce the `chunk_size` in the configuration. - If the script is using too much memory, reduce the `chunk_size` in the configuration.
- If the script is too slow, increase the `max_workers` in the configuration (but be mindful of API rate limits). - If the script is too slow, increase the `max_workers` in the configuration (but be mindful of API rate limits).
## License
MIT