Skip to content

Instantly share code, notes, and snippets.

@ejscribner
Created April 29, 2025 19:09
Show Gist options
  • Select an option

  • Save ejscribner/6f16343d4b44b1af31e8f344557814b0 to your computer and use it in GitHub Desktop.

Select an option

Save ejscribner/6f16343d4b44b1af31e8f344557814b0 to your computer and use it in GitHub Desktop.
Travel Agent Point of Interest Vector Index
{
"type": "fulltext-index",
"name": "travel-agent.vectors.poi-index",
"uuid": "1ebc798727591913",
"sourceType": "gocbcore",
"sourceName": "travel-agent",
"sourceUUID": "3c8d923c16e5d0a40bbeb234603d7ff3",
"planParams": {
"maxPartitionsPerPIndex": 1024,
"indexPartitions": 1
},
"params": {
"doc_config": {
"docid_prefix_delim": "",
"docid_regexp": "",
"mode": "scope.collection.type_field",
"type_field": "type"
},
"mapping": {
"analysis": {},
"default_analyzer": "standard",
"default_datetime_parser": "dateTimeOptional",
"default_field": "_all",
"default_mapping": {
"dynamic": false,
"enabled": false
},
"default_type": "_default",
"docvalues_dynamic": false,
"index_dynamic": true,
"store_dynamic": true,
"type_field": "_type",
"types": {
"vectors.points-of-interest": {
"dynamic": false,
"enabled": true,
"properties": {
"description": {
"dynamic": false,
"enabled": true,
"fields": [
{
"analyzer": "en",
"docvalues": true,
"include_term_vectors": true,
"name": "description",
"store": true,
"type": "text"
}
]
},
"embedding": {
"dynamic": false,
"enabled": true,
"fields": [
{
"dims": 1536,
"index": true,
"name": "embedding",
"similarity": "dot_product",
"type": "vector",
"vector_index_optimized_for": "recall"
}
]
}
}
}
}
},
"store": {
"indexType": "scorch",
"segmentVersion": 16
}
},
"sourceParams": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment