haematite-cli 0.21.9

The haematite command: serve a store, its door and Studio, answer MCP, query with jq, and host the store's assistant seat
Documentation
{
  "group": "Searching by meaning",
  "entries": [
    {
      "name": "Similar records",
      "sentence": "Read the closest records to a stored record using its vector field.",
      "query": "collection(${collection}) | similar(.${field}; record(${record}); ${measure}) | limit(${limit})",
      "change": "Change ${collection} and ${record} to quoted names, ${field} to the vector field, ${measure} to dot, cosine or l2 and ${limit} to a positive whole number.",
      "defaults": {
        "collection": "\"patients\"",
        "field": "embedding",
        "record": "\"p0\"",
        "measure": "dot",
        "limit": "2"
      }
    },
    {
      "name": "Similar records after text",
      "sentence": "Search by meaning only among whole records that matched a text pattern.",
      "query": "collection(${collection}) | rg(${pattern}) | similar(.${field}; record(${record}); ${measure}) | limit(${limit})",
      "change": "Change ${collection}, ${pattern} and ${record} to quoted names or text, ${field} to the vector field, ${measure} to dot, cosine or l2 and ${limit} to a positive whole number.",
      "defaults": {
        "collection": "\"patients\"",
        "pattern": "\"4B\"",
        "field": "embedding",
        "record": "\"p0\"",
        "measure": "dot",
        "limit": "2"
      }
    }
  ]
}