mlx-bun library API
    Preparing search index...
    • Qwen3-Embedding query format: a task instruction steers WHICH similarity axis the geometry reflects ("represent this for topic routing" vs "...for sentiment"). Documents are embedded raw; only queries get an instruction.

      Parameters

      • text: string
      • Optionalinstruction: string

      Returns string