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
595 stars 390 forks source link

Purpose of function component? #341

Closed mattgotteiner closed 1 month ago

mattgotteiner commented 1 month ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

In main.bicep we deploy a function. As far as I can tell - the invocation URL for this function is never shared with the container app or given as an output in an environment variable. What is the purpose of the function? I do not think the comment is accurate as the container app actually has all the code necessary for embedding and doesn't have the URL to the function set in any environment variable

https://github.com/Azure-Samples/azure-search-openai-demo-csharp/blob/529b4a2c811c18f81358ba04d2d9e3bb200ac055/infra/main.bicep#L350-L353

mattgotteiner commented 1 month ago

blob triggered