Dataset Viewer
The dataset viewer is not available for this dataset.
The JWT signature verification failed. Check the signing key and the algorithm.
Error code:   JWTInvalidSignature
Exception:    InvalidSignatureError
Message:      Signature verification failed
Traceback:    Traceback (most recent call last):
                File "/src/libs/libapi/src/libapi/jwt_token.py", line 286, in validate_jwt
                  decoded = jwt.decode(
                      jwt=token,
                  ...<2 lines>...
                      options=options,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 368, in decode
                  decoded = self.decode_complete(
                      jwt,
                  ...<8 lines>...
                      leeway=leeway,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 265, in decode_complete
                  decoded = self._jws.decode_complete(
                      jwt,
                  ...<3 lines>...
                      detached_payload=detached_payload,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 270, in decode_complete
                  self._verify_signature(
                  ~~~~~~~~~~~~~~~~~~~~~~^
                      signing_input,
                      ^^^^^^^^^^^^^^
                  ...<4 lines>...
                      options=merged_options,
                      ^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 417, in _verify_signature
                  raise InvalidSignatureError("Signature verification failed")
              jwt.exceptions.InvalidSignatureError: Signature verification failed

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

AutoGEO ChatNoir Search Cache

这是 AutoGEO 项目的 ChatNoir 搜索缓存数据集。

📊 数据集统计

  • 缓存文件数量: 2896
  • 数据来源: ChatNoir 搜索 API
  • 用途: 避免重复调用 ChatNoir API,加速实验复现

📁 文件格式

search_cache/
├── {sha256_hash}.json   # 搜索结果缓存
├── ...
└── index.json            # 索引文件 (hash -> metadata)

每个 .json 文件的内容格式:

[
  {
    "idx": 0,
    "title": "Document Title",
    "snippet": "Document snippet...",
    "url": "https://example.com/page",
    "uuid": "chatnoir-uuid",
    "raw_content": ""
  },
  ...
]

🔧 使用方法

方法 1: 直接下载使用

from huggingface_hub import snapshot_download

# 下载缓存到本地
cache_dir = snapshot_download(
    repo_id="your-username/autogeo-chatnoir-cache",
    repo_type="dataset",
    local_dir="./search_cache"
)

# 在 AutoGEO 配置中指定缓存目录
# config.yaml:
# geo_agent:
#   disk_cache_dir: "./search_cache"

方法 2: 在代码中使用

import hashlib
import json
from pathlib import Path

def get_cached_results(query: str, cache_dir: str) -> list:
    """根据 query 获取缓存的搜索结果"""
    hash_key = hashlib.sha256(query.encode("utf-8")).hexdigest()
    cache_path = Path(cache_dir) / f"{hash_key}.json"

    if cache_path.exists():
        with open(cache_path, "r") as f:
            return json.load(f)
    return None

# 示例
results = get_cached_results("What is machine learning?", "./search_cache")

📝 许可证

MIT License

🙏 致谢

  • ChatNoir - 提供搜索 API
  • AutoGEO 项目 - 生成式搜索引擎优化研究
Downloads last month
55