Spaces:
Build error
Build error
Download config.yaml from LuckyMod/intentforge: direct link, hf CLI and curl.
- Browser
- Download file 4.9 kB
-
https://huggingface.co/spaces/LuckyMod/intentforge/resolve/main/config.yaml
- Command line
-
hf download hf://spaces/LuckyMod/intentforge/config.yaml
-
curl -L -o config.yaml https://huggingface.co/spaces/LuckyMod/intentforge/resolve/main/config.yaml
4.9 kB
| # IntentForge v2 Configuration | |
| [meilisearch] | |
| # Disabled: Using Qdrant hybrid search (BM25 sparse + dense vectors) instead | |
| enabled = false | |
| url = "" | |
| master_key = "" | |
| index_name = "intentforge" | |
| binary_quantization = true | |
| task_timeout_secs = 120 | |
| semantic_ratio = 0.7 | |
| redis_cache_enabled = true | |
| [qdrant] | |
| url = "https://6327104c-a2b9-4057-8080-688812c6dcaf.eu-west-2-0.aws.cloud.qdrant.io:6334" | |
| api_key = "SET_VIA_ENV" | |
| collection_name = "intentforge" | |
| [redis] | |
| url = "SET_VIA_ENV" | |
| # Bloom filter false positive rate | |
| bloom_fp_rate = 0.01 | |
| # SimHash threshold for deduplication | |
| simhash_threshold = 3 | |
| [crawler] | |
| # Requests per second limit | |
| rate_limit = 10 | |
| # Maximum concurrent fetches | |
| max_concurrent = 8 | |
| # Request timeout in seconds | |
| timeout_secs = 30 | |
| # User agent | |
| user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 IntentForge/0.1" | |
| # Respect robots.txt | |
| respect_robots = true | |
| # Static-first: try static HTML before JS rendering | |
| static_first = true | |
| # Maximum retries for failed requests | |
| max_retries = 3 | |
| # Robots.txt cache TTL in seconds | |
| robots_cache_ttl_secs = 3600 | |
| # Domains that require JS rendering (comma-separated in TOML array) | |
| js_whitelist = ["producthunt.com", "news.ycombinator.com"] | |
| [indexer] | |
| # Batch size for ONNX inference | |
| inference_batch_size = 32 | |
| # Minimum content length to index | |
| min_content_length = 100 | |
| # Snippet length for search results | |
| snippet_length = 200 | |
| [trending] | |
| # Refresh interval in seconds | |
| refresh_interval = 300 | |
| # Number of top items to track per category | |
| top_n = 50 | |
| [discovery] | |
| # Interval in seconds between discovery cycles (adaptive: 30s-3600s based on queue size) | |
| interval_secs = 300 | |
| # Maximum size of the crawl queue before pausing discovery | |
| max_queue_size = 50000 | |
| # Whether to extract and follow outbound links | |
| follow_links = true | |
| # Minimum intent score threshold for following links | |
| link_threshold = 0.6 | |
| [discovery.common_crawl_delta] | |
| # Enable monthly Common Crawl delta ingestion | |
| enabled = true | |
| # Interval in seconds (default: 30 days) | |
| interval_secs = 2592000 | |
| # Crawl ID to use (empty = fallback to default) | |
| crawl_id = "CC-MAIN-2025-08" | |
| # Domains to discover from Common Crawl | |
| domains = ["github.com", "arxiv.org", "news.ycombinator.com", "stackoverflow.com", "medium.com", "dev.to"] | |
| # Max CDX entries to query per domain | |
| max_entries_per_domain = 100 | |
| # Directory for persistent state (mount as volume in Docker: cc_data:/app/cc_data) | |
| data_dir = "./cc_data" | |
| # Minimum quality score to enqueue (0.0-1.0) | |
| quality_threshold = 0.3 | |
| [video_discovery] | |
| ytdlp_path = "/usr/local/bin/yt-dlp" | |
| ytdlp_update_interval_hours = 24 | |
| enabled_sources = ["youtube_unified", "archive_org"] | |
| search_limit = 15 | |
| cache_ttl_secs = 3600 | |
| piped_instances = [] | |
| invidious_instances = [] | |
| youtube_api_key = "SET_VIA_ENV" | |
| rapidapi_key = "SET_VIA_ENV" | |
| [logging] | |
| level = "info" | |
| format = "json" | |
| [extraction] | |
| # Disabled: Using built-in Rust HTML extraction instead of Trafilatura microservice | |
| enabled = false | |
| trafilatura_url = "" | |
| batch_size = 16 | |
| timeout_secs = 60 | |
| [inference] | |
| # Path to ONNX model | |
| model_path = "models/all-MiniLM-L6-v2.onnx" | |
| # Batch size for inference | |
| inference_batch_size = 32 | |
| # Embedding dimension | |
| embedding_dim = 384 | |
| # Maximum sequence length for tokenizer | |
| max_seq_length = 128 | |
| [anti_detection] | |
| # Enable header rotation with TLS alignment | |
| enabled = true | |
| # Rotate user agent every N requests | |
| rotation_interval = 10 | |
| # Use Sec-CH-UA client hints (Chrome-like headers) | |
| use_client_hints = true | |
| # Invidious instances for YouTube (fallback order) | |
| invidious_instances = ["https://invidious.nerdvpn.de", "https://inv.tux.pizza", "https://yewtu.be"] | |
| # StackExchange API key (optional, increases quota from 300 to 10k/day) | |
| # stackoverflow_api_key = "YOUR_KEY_HERE" | |
| # PubMed API key (optional, increases rate limit) | |
| # pubmed_api_key = "YOUR_KEY_HERE" | |
| # Semantic Scholar API key (optional) | |
| # semantic_scholar_api_key = "YOUR_KEY_HERE" | |
| [self_improvement] | |
| # Enable self-improvement via in-process meta-search | |
| enabled = true | |
| # Minimum gap score - queries with avg relevance below this trigger gap filling | |
| min_gap_score = 0.5 | |
| # Max results to fetch from external API per gap query (increased for faster live-fill) | |
| max_results_per_query = 20 | |
| # Interval between gap processing cycles (in seconds) | |
| process_interval_secs = 300 | |
| # Synchronous discovery target | |
| min_urls_per_gap = 15 | |
| # Maximum rounds to try in synchronous discovery | |
| max_search_rounds = 5 | |
| # Concurrent tasks for background processing | |
| max_parallel_gaps = 3 | |
| [image_search] | |
| # External image search API keys (set via env vars or here) | |
| # Pixabay: 100 req/60s free tier | |
| # pixabay_api_key = "YOUR_PIXABAY_KEY" | |
| # Pexels: 200 req/hour (20k/month) free tier | |
| # pexels_api_key = "YOUR_PEXELS_KEY" | |
| # Max results per provider per query | |
| search_limit = 20 | |
| # Cache TTL in seconds (Pixabay requires 24h minimum) | |
| cache_ttl_secs = 86400 | |
| searxng_url = "https://luckymod-searxng-tor.hf.space" | |