pai
    Preparing search index...

    Function searchMemory

    • Notes ranked by how well they match query: each query word found scores by how rare it is across the notes, a title match counts double, and a newer note wins a tie. Every word must appear unless any is set.

      Parameters

      • env: Env
      • space: string
      • query: string
      • opts: { any?: boolean; limit?: number; tag?: string } = {}

      Returns (MemoryNote & { score: number })[]

      • score: number

        How well the note matched. Higher is better.