資料來源於CoinMarketCap和其他第三方。我們不對所提供資料的準確性做出任何陳述。 詳細瞭解
關於 LiveFetch
A small framework/module for keeping LLMs up-to-date with current events past their cut-off date.
# LiveFetch
Keyless evidence retrieval framework for grounded reasoning systems.
## Overview
LiveFetch provides deterministic, timestamped web evidence for LLM pipelines. It combines discovery, extraction, and multi-factor ranking into a single retrieval primitive that returns structured `EvidencePacket` objects.
## Architecture
```mermaid
flowchart LR
I[RetrievalIntent] --> D[Discovery]
D -->|URLs| F[Fetch]
F -->|HTML| E[Extract]
E -->|text + meta| S[Score]
S --> P[EvidencePacket]
S -.-> C[(SQLite)]
```
## Scoring Model
Documents are ranked by a weighted linear combination:
$S(d|q) = w_r * R + w_f * F + w_t * T - w_dup * D$
| Component | Weight | Description |
|-----------|--------|-------------|
| R (relevance) | 0.55 | Token overlap + fuzzy string similarity |
| F (freshness) | 0.25 | Exponential decay: $2^(-age_days / 7)$ |
| T (trust) | 0.20 | Domain-based prior (.gov=0.9, .edu=0.85, etc.) |
| D (redundancy) | 0.35 | Similarity penalty to already-selected docs |
## Installation
```bash
pip install -r requirements.txt
```
## Usage
```python
from DCC.main import LiveFetch, RetrievalIntent
intent = RetrievalIntent(
query="EU AI Act enforcement",
mode="news", # web | news | rss
max_results=5,
freshness_days=14,
need_quotes=True
)
with LiveFetch() as lf:
packets = lf.run_sync(intent)
```
## Data Structures
### RetrievalIntent
| Field | Type | Default | Description |
|-------|------|---------|-------------|
| query | str | required | Search query or RSS URL |
| mode | Literal | "news" | Discovery mode: web, news, rss |
| max_results | int | 8 | Max packets returned |
| freshness_days | int | 14 | Hard filter cutoff (None=disabled) |
| need_quotes | bool | True | Extract quotable sentences |
| allow_domains | List[str] | None | Whitelist filter |
| deny_domains | List[str] | None | Blacklist filter |
### EvidencePacket
| Field | Type | Description |
|-------|------|-------------|
| url | str | Canonical source URL |
| domain | str | Extracted domain |
| title | str | Page title |
| text | str | Extracted content (clipped to 12k chars) |
| published_at | datetime | Publication timestamp |
| fetched_at | datetime | Retrieval timestamp (UTC) |
| score | float | Composite ranking score |
| score_breakdown | Dict | Individual R/F/T/D components |
| content_sha256 | str | Content hash for deduplication |
| quotes | List[str] | Key sentences for citation |
## Extraction Pipeline
1. **trafilatura** (primary) - fast mode extraction
2. **newspaper3k** (fallback) - also provides publish date inference
3. **readability-lxml** (tertiary) - boilerplate removal + trafilatura cleanup
## Cache
SQLite with WAL mode. Schema:
```sql
CREATE TABLE docs (
url TEXT PRIMARY KEY,
content_sha256 TEXT,
fetched_at TEXT,
published_at TEXT,
title TEXT,
text TEXT
);
```
Default path: `livefetch.sqlite`
## Configuration
Class attributes on `LiveFetch`:
| Attribute | Default | Description |
|-----------|---------|-------------|
| MAX_CONCURRENCY | 6 | Parallel fetch limit |
| TIMEOUT_S | 15.0 | HTTP timeout |
| MAX_CHARS | 12000 | Content truncation |
| FRESHNESS_HALF_LIFE | 7.0 | Days for 50% freshness decay |
## Dependencies
- ddgs (DuckDuckGo search)
- httpx (async HTTP)
- trafilatura, newspaper3k, readability-lxml (extraction)
- rapidfuzz (similarity)
- tldextract (domain parsing)
- feedparser (RSS)
Source:
交易洞察
市場統計
市值
US$1369.28
FDV
US$1369.28
Circ. 供應
10亿 LIVEFETCH
最大供應量
10亿 LIVEFETCH
總供應量
10亿 LIVEFETCH
表現
人氣
沒有足夠的資料
支配地位
沒有足夠的資料
交易量(24 小時)
沒有足夠的資料
交易量 (7D)
沒有足夠的資料
體積 (30D)
沒有足夠的資料
最高紀錄
US$0.000000000001738
價格變化 (1Y)
額外詳細資訊
市場詳細資訊
LIVEFETCH 相較於市場
0%
LIVEFETCH vs 比特幣
↗ 53.21%
LIVEFETCH vs ETH
↗ 81.58%
標籤
網路與位址
網路 | 地址 | |
|---|---|---|
Solana | 9HBe4qvKaAFRRdxFvU8xcjUN6w4ZPcyi2MEcEmtwswrm |
價格歷史記錄
時間 | 價格 | 變更 |
|---|---|---|
今天 | US$0.000001369 | |
1 天 | US$0.000001382 | |
1 週 | US$0.000001382 | |
1 個月 | US$0.000001382 | |
1 年 | US$0.00 |
常見問答
LiveFetch 計算器
相關資產
法律
此處所提供的資訊僅供參考,並非投資建議。這不是購買或出售特定數位資產或採用特定投資策略的建議。Coinbase 不對所提供的任何資訊或特定資產的準確性、適用性或有效性作出任何陳述。
特定內容乃是由與 Coinbase Inc. 或其任何關係企業無關的第三方所準備,因此 Coinbase 對此類內容概不負責。Coinbase 對於內容的任何錯誤或延誤,或依賴任何內容的任何行為概不負責。此處所提供的資訊僅供參考,並非投資建議。這不是購買或出售特定數位資產或採用特定投資策略的建議。Coinbase 不代表所提供資訊或特定資產的準確性、穩定性或有效性。所示價格僅供參考。實際的加密貨幣價格和相關統計數字可能會有所不同。呈現的資料可能反映出在 Coinbase 交易所以及其他精選加密貨幣交易所交易的資產。



