Skip to content

Instantly share code, notes, and snippets.

@numpde
Created November 10, 2024 10:33
Show Gist options
  • Save numpde/e024e3a92584e246beeda4bce11ded02 to your computer and use it in GitHub Desktop.
Save numpde/e024e3a92584e246beeda4bce11ded02 to your computer and use it in GitHub Desktop.
WA/TA: Typesense collection for an issue tracker
{
"name": "issues",
"fields": [
{
"name": "thread_id",
"type": "string",
"facet": true,
"optional": false,
"index": true,
"sort": false,
"infix": false,
"locale": ""
},
{
"name": "client_id",
"type": "string",
"facet": true,
"optional": false,
"index": true,
"sort": false,
"infix": false,
"locale": ""
},
{
"name": "business_id",
"type": "string",
"facet": true,
"optional": false,
"index": true,
"sort": false,
"infix": false,
"locale": ""
},
{
"name": "subtopic",
"type": "string",
"facet": true,
"optional": true,
"index": true,
"sort": false,
"infix": true,
"locale": ""
},
{
"name": "created_at",
"type": "int64",
"facet": false,
"optional": false,
"index": true,
"sort": true,
"infix": false,
"locale": ""
},
{
"name": "updated_at",
"type": "int64",
"facet": false,
"optional": false,
"index": true,
"sort": true,
"infix": false,
"locale": ""
},
{
"name": "status",
"type": "string",
"facet": true,
"optional": false,
"index": true,
"sort": false,
"infix": false,
"locale": ""
},
{
"name": "priority",
"type": "int32",
"facet": true,
"optional": true,
"index": true,
"sort": true,
"infix": false,
"locale": ""
},
{
"name": "assigned_agent",
"type": "string",
"facet": true,
"optional": true,
"index": true,
"sort": false,
"infix": false,
"locale": ""
},
{
"name": "summary",
"type": "string",
"facet": false,
"optional": true,
"index": true,
"sort": false,
"infix": true,
"locale": ""
},
{
"name": "embedding",
"type": "float[]",
"facet": false,
"optional": false,
"index": true,
"sort": false,
"infix": false,
"locale": "",
"embed": {
"from": [
"subtopic",
"summary"
],
"model_config": {
"api_key": "sk-pr***************************************************************************************************************************************************************",
"model_name": "openai/text-embedding-3-small"
}
},
"num_dim": 1536,
"vec_dist": "cosine"
}
],
"default_sorting_field": "updated_at",
"enable_nested_fields": false,
"symbols_to_index": [],
"token_separators": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment