|
30 | 30 | } |
31 | 31 | }, |
32 | 32 | "scrape_start_urls": true, |
33 | | - "strip_chars": " .,;:#" |
| 33 | + "strip_chars": " .,;:#", |
| 34 | + "custom_settings": { |
| 35 | + "field_definitions": [ |
| 36 | + {"name": "anchor", "type": "string", "optional": true}, |
| 37 | + {"name": "content", "type": "string", "optional": true}, |
| 38 | + {"name": "url", "type": "string", "facet": true}, |
| 39 | + {"name": "url_without_anchor", "type": "string", "facet": true, "optional": true}, |
| 40 | + {"name": "version", "type": "string[]", "facet": true, "optional": true}, |
| 41 | + {"name": "hierarchy.lvl0", "type": "string", "facet": true, "optional": true}, |
| 42 | + {"name": "hierarchy.lvl1", "type": "string", "facet": true, "optional": true}, |
| 43 | + {"name": "hierarchy.lvl2", "type": "string", "facet": true, "optional": true}, |
| 44 | + {"name": "hierarchy.lvl3", "type": "string", "facet": true, "optional": true}, |
| 45 | + {"name": "hierarchy.lvl4", "type": "string", "facet": true, "optional": true}, |
| 46 | + {"name": "hierarchy.lvl5", "type": "string", "facet": true, "optional": true}, |
| 47 | + {"name": "hierarchy.lvl6", "type": "string", "facet": true, "optional": true}, |
| 48 | + {"name": "type", "type": "string", "facet": true, "optional": true}, |
| 49 | + {"name": ".*_tag", "type": "string", "facet": true, "optional": true}, |
| 50 | + {"name": "language", "type": "string", "facet": true, "optional": true}, |
| 51 | + {"name": "tags", "type": "string[]", "facet": true, "optional": true}, |
| 52 | + {"name": "item_priority", "type": "int64"}, |
| 53 | + { |
| 54 | + "name": "embedding", |
| 55 | + "type": "float[]", |
| 56 | + "embed": { |
| 57 | + "from": [ |
| 58 | + "content", |
| 59 | + "hierarchy.lvl0", |
| 60 | + "hierarchy.lvl1", |
| 61 | + "hierarchy.lvl2", |
| 62 | + "hierarchy.lvl3", |
| 63 | + "hierarchy.lvl4", |
| 64 | + "hierarchy.lvl5", |
| 65 | + "hierarchy.lvl6", |
| 66 | + "tags" |
| 67 | + ], |
| 68 | + "model_config": { |
| 69 | + "model_name": "ts/all-MiniLM-L12-v2" |
| 70 | + } |
| 71 | + } |
| 72 | + } |
| 73 | + ] |
| 74 | + } |
34 | 75 | } |
0 commit comments