这是来自去中心化交易所 (DEX) 的未经审核资产,在美国大部分地区均提供。创建免费账户,查看是否可以交易。

关于 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$50 的加密货币即可赚取高达 US$2,000

帮我注册
限制条件适用。查看完整条款。

US$0.000001234

交易洞察

市场统计数据

市值

US$1233.56

FDV

US$1233.56

流通供应量

10亿 LIVEFETCH

最大供应量

无最大供应量

总供应量

10亿 LIVEFETCH

表现

热门程度

数据不足

主导地位

数据不足

成交量(24 小时)

数据不足

交易量(7 天)

数据不足

交易量(30 天)

数据不足

历史最高记录

数据不足

价格变动(1 年)

其他详细信息

市场详情

LIVEFETCH 相较于市场

没有足够的数据

LIVEFETCH vs 比特币

没有足够的数据

LIVEFETCH vs 以太币

没有足够的数据

标签

0

网络和地址

网络
地址

Solana

9HBe4qvKaAFRRdxFvU8xcjUN6w4ZPcyi2MEcEmtwswrm

价格历史记录

时间
价格
更改
今天
US$0.000001234
数据不足
1 天
US$0.000001132
0.00%
1 周
US$0.000001132
0.00%
1 个月
US$0.000001219
0.00%
1 年
US$0.00
0.00%

常见问题

我们实时将 LiveFetch 更新为 USD 货币。通过 Coinbase 获取最新 LiveFetch 价格

LiveFetch的当前市值为 US$1233.563。高市值意味着该资产在市场上的价值很高。

在过去 24 小时内,LiveFetch的交易量为 US$0.00。

LiveFetch的当前流通供应量是 10亿。

购买 US$50 的加密货币即可赚取高达 US$2,000

首次购买后即可获得免费加密货币。

指南

LiveFetch 计算器

相关资产

法务