Evaluation Azure AI Search for pagination

Aperta
#4,335 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
azure, csharp, github

Direzione di ricerca

Start with tools/Azure.Mcp.Tools.Search/src/Services/SearchService.cs and IndexQueryCommand.cs, then review docs/tool-pagination.md and the Azure AI Search SDK continuation support for text, vector, and semantic queries. Establish supported modes, limits, and ordering consistency before choosing a cursor contract; acceptance requires tests for paging, terminal and empty responses, opaque tokens, and changed inputs. Document any unsupported modes and the result limit decision.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement needs-team-triage server-Azure.Mcp tools-Search

Evaluate cursor pagination for Azure AI Search queries

Context

IndexQueryCommand returns search results through SearchService.QueryIndex, which sets SearchOptions.Size = 20 and enumerates the result set. Continuing beyond the present top-20 behavior would be a contract change.

Work

  • Verify which continuation or offset mechanisms the existing Azure AI Search SDK and API support for the tool's text, vector, and semantic query modes, including limits and ordering consistency.
  • If a valid continuation strategy exists, add the standard cursor contract and bind it to service, index, search text, query mode, semantic configuration, and any other fixed search inputs.
  • Decide whether a page means a subset of the existing top 20 or whether the tool should expose further matches. Preserve current behavior until a migration decision is made; explicitly document result ordering and any service limits.

Acceptance criteria

  • Tests exercise supported modes, first and subsequent pages, terminal and empty responses, opaque token handling, and changed-input rejection.
  • Preserve the existing result wrapper and source-generated serialization; document and test any intentional change to the result limit.
  • If the backend does not support a safe continuation for a mode, document that limitation rather than returning an unreliable cursor.

References

  • tools/Azure.Mcp.Tools.Search/src/Commands/Index/IndexQueryCommand.cs
  • tools/Azure.Mcp.Tools.Search/src/Services/SearchService.cs
  • docs/tool-pagination.md
Lingua principale
C#
Stelle
3.9k
Fork
689
Merge medio
2g 11h
PR unite (30g)
143

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/mcp

Tutte le issue di microsoft/mcp

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.