Skip to content

Commit 852a2aa

Browse files
committed
Add support for semantic search
1 parent 4c86111 commit 852a2aa

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

search-server/typesense-scraper/typesense-scraper-config.json

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,46 @@
3030
}
3131
},
3232
"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+
}
3475
}

0 commit comments

Comments
 (0)