
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!Idunn workflow
GET /schemaThe main endpoints are:
/v1/places/{place_id}?lang={lang}&type={type}&verbosity={verbosity} to get the details of a place
(admin, street, address or POI).
type: (optional) parameter belongs to the set {'admin', 'street', 'address', 'poi'}verbosity parameter belongs to the set {'long', 'short'}. The default verbosity is long./v1/places?bbox={bbox}&category=<category-name>&size={size} to get a list of all points of interest matching the given bbox and categories
bbox: left,bot,right,top e.g. bbox=2.0,48.0,3.0,49.0category: multiple values are accepted (e.g. category=leisure&category=museum)size: maximum number of places in the responseverbosity: default verbosity is list (equivalent to long, except "information" and "wiki" blocks are not returned)source: (optional) to force a data source (instead of automated selection based on coverage). Accepted values: osm, pages_jaunesq: full-text query (optional, experimental)/v1/places?bbox={bbox}&raw_filter=class,subclass&size={size} to get a list of all points of interest matching the given bbox (=left,bot,right,top e.g. bbox=2,48,3,49) and the raw filters (e.g. raw_filter=*,restaurant&raw_filter=shop,*&raw_filter=bakery,bakery)/v1/categories to get the list of all the categories you can filter on./v1/pois/{poi_id}?lang={lang} is the deprecated route to get the details of a POI./v1/directions See directions.md for details/v1/events?bbox={bbox}&category=<category_name>&size={size} to get a list of all events matching the given bbox and outing_category
bbox: left,bot,right,top e.g. bbox=2.0,48.0,3.0,49.0category: one value is accepted (e.g. category=concert | show | exhibition | sport | entertainment)size: maximum number of events in the response/v1/status to get the status of the API and associated ES cluster./v1/metrics to get some metrics on the API that give statistics on the number of requests received, the duration of requests... This endpoint can be scraped by Prometheus.Create the virtualenv and install dependencies:
shellpipenv install
and then:
shellIDUNN_MIMIR_ES=<url_to_MIMIR_ES> IDUNN_WIKI_ES=<url_to_WIKI_ES> pipenv run python app.py
you can query the API on port 5000:
shellcurl localhost:5000/v1/places/toto?lang=fr&type=poi
The configuration can be given from different ways:
utils/default_settings.yamlIDUNN_CONFIG_FILE
(the default settings is still loaded and overriden)Please note that you will need an API key from openweathermap in order to use the Weather block. You can then set it into the IDUNN_WEATHER_API_KEY environment variable or directly into the WEATHER_API_KEY inside the utils/default_settings.yaml file.
Idunn comes along with all necessary components to contribute as easily as possible: specifically you don't need to have any Elasticsearch instance running. Idunn uses docker images to simulate the Elasticsearch sources and the Redis. This means that you will need a local docker install to be able to spawn an ES cluster.
To contribute the common workflow is:
pipenv install --dev./tests for the new feature you proposepipenv run pytest -vv -xpipenv run black --diff --checkYou can run it with both Redis and elasticsearch using docker. First, edit the docker-compose.yml file to add a link to your elasticsearch instance (for example: https://somewhere.lost/) in IDUNN_MIMIR_ES.
Then you just need to run:
bash$ docker-compose up --build
If you need to clean the Redis cache, run:
bash$ docker-compose kill $ docker image prune --filter "label=idunn_idunn"
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。



来自真实用户的反馈,见证轩辕镜像的优质服务