Spaces:
Sleeping
Sleeping
Randy Mustelier Rivero
fix: SourceType enum en search, normalize_url localhost, demo endpoint, adaptador demo local
c43ab3b Download adapters/example_httpbin.yaml from Randolo/novasearch: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/spaces/Randolo/novasearch/resolve/main/adapters/example_httpbin.yaml
- Command line
-
hf download hf://spaces/Randolo/novasearch/adapters/example_httpbin.yaml
-
curl -L -o example_httpbin.yaml https://huggingface.co/spaces/Randolo/novasearch/resolve/main/adapters/example_httpbin.yaml
571 Bytes
| # Adaptador de ejemplo: demo local (no requiere internet) | |
| # Apunta al endpoint /api/demo del propio servicio. | |
| # Los selectores buscan items dentro de contenedores .item. | |
| name: demo_local | |
| site: localhost | |
| vertical: test | |
| search_url: "http://localhost:8000/api/demo" | |
| container_selector: ".item" | |
| fields: | |
| - name: titulo | |
| selector: ".title" | |
| type: text | |
| - name: descripcion | |
| selector: ".desc" | |
| type: text | |
| - name: precio | |
| selector: ".price" | |
| type: price | |
| # Mapeo a schema canónico | |
| canonical_map: | |
| title: titulo | |
| description: descripcion | |
| price: precio | |