Azure-Samples / azure-search-openai-demo-csharp

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
MIT License
551 stars 345 forks source link

Update sourcefile field setting IsFilterable to true. #327

Open jaliyaudagedara opened 3 weeks ago

jaliyaudagedara commented 3 weeks ago

Purpose

In here,

var filter = (fileName is null) ? null : $"sourcefile eq '{Path.GetFileName(fileName)}'";

for this to work, sourcefile should be filterable.

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe: