Skip to content

MarkIndex v0.2.0

Latest

Choose a tag to compare

@jackjin1997 jackjin1997 released this 22 Nov 16:37

Added

  • Optional reranking of search_documents results, off by default and experimental. markindex mcp <root> --rerank jev (or openLibrary({ rerank: { reranker } })) has a reranker score the 50 best keyword hits and returns the
    most relevant; the tool then takes an optional intent, a full sentence saying what is being looked for, and
    each hit carries a relevance. The built-in reranker, jevReranker(), uses TypeSafe's hosted Jev model and
    sends the question and the text of the candidate sections to that service; any object with a score() method
    can be used instead. When the reranker fails or takes too long, the keyword order is returned. Without the
    option nothing changes: same tools, same schemas, no network calls.
  • Library.contract: the tool descriptions and input schemas a library serves. createMcpServer() and
    createAiSdkTools() read it. New exports: TOOL_CONTRACT_RERANKED, jevReranker, jevConfigFromEnv and the
    Reranker, RerankOptions, ToolContract types.