Feature request: Runtime filtering/scoping for Generative Answers (uploaded files + SharePoint) by metadata (e.g., file name, category, tags)

Abierto
#451 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Área
ai

Línea de trabajo

No se nombran archivos del repositorio, pruebas ni puntos de entrada. Empieza revisando el comportamiento de Copilot Studio Generative Answers y la discusión enlazada de Power Platform Community; completar esto requeriría un alcance de implementación acordado para filtros de metadatos en tiempo de ejecución entre archivos cargados y fuentes de SharePoint.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Title

Feature request: Runtime filtering/scoping for Generative Answers (uploaded files + SharePoint) by metadata (e.g., file name, category, tags)

Description

Is your feature request related to a problem? Please describe.
In Copilot Studio, Generative Answers can use knowledge from uploaded files (PDF/DOCX) and SharePoint sources. However, there is no reliable way to dynamically scope or filter the retrieval at runtime (per conversation turn) based on metadata such as category, file name, document ID, tags, or customer context.
This becomes a blocker for scenarios with hundreds/thousands of documents where users first select a category or where the bot determines a category via NLU and then should answer only from the relevant subset of documents.
Workarounds like adding “file name” into the search query are not deterministic and often return chunks from other documents. Creating separate static knowledge sources/scopes for every case (e.g., 1000 categories/doc groups) is not manageable.

Describe the solution you'd like
Add a runtime filtering/scoping capability for Generative Answers retrieval, for both:

  • Uploaded files (local uploads) and
  • SharePoint-based knowledge sources (optional)

Examples of desired capabilities:

  1. Metadata-based filter parameters (at runtime), e.g.:

    • fileName eq 'ABC-123.pdf'
    • category in ('IT', 'HR')
    • tags contains 'refund'
    • customerId eq 'C-1007'
  2. A way to attach metadata to uploaded files (or reuse existing metadata like file name) and then filter on it in the Generative Answers node.

  3. A Generative Answers node option like:

    • “Restrict retrieval to documents matching filter”
    • “Use only these document IDs / file names”
  4. Ideally usable via variables (Power Fx), e.g.:

    • FilterExpression = Global.SelectedCategory
    • AllowedFiles = Global.FileList

Describe alternatives you've considered

  • Embedding the file name into the user query (e.g., "ABC-123.pdf " + question) – improves relevance sometimes but is not reliable and not a true filter.
  • Creating many separate knowledge sources/scopes (one per folder/category) – not scalable for many categories/doc groups.
  • Using Azure AI Search with filterable metadata – works but adds significant operational overhead and complexity compared to built-in Generative Answers knowledge (indexing pipeline, schema, enrichment, etc.).
  • Custom Data input – requires extracting full text content externally; difficult for PDFs and defeats the benefit of built-in ingestion/indexing.

Additional context
Use case: Customer service agent selects a category (or the bot infers it). The answer must be grounded only in the documents for that category (e.g., “Returns Policy – EU”, “Warranty – Product X”, “Contract Type Y”). Documents are mostly PDFs; they may be uploaded directly to Copilot Studio or stored in SharePoint.
We need deterministic runtime filtering/scoping to avoid answers grounded from unrelated documents and to keep governance manageable.

References / related discussions

Power Platform Community: “Generative answers with filtering documents / knowledge bases”
https://community.powerplatform.com/forums/thread/details/?threadid=fedcdc55-5967-4293-8417-c163e99f440f

Lenguaje dominante
TypeScript
Estrellas
797
Forks
491
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/CopilotStudioSamples

Todos los issues de microsoft/CopilotStudioSamples

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.