Azure / Azure/Vector-Search-AI-Assistant
Deployment errors with ACA (AKS too) due to path error
- Dominant language
- C#
- Stars
- 190
- Forks
- 87
- PR merge metrics
- No merged PRs in 30d
Description
Following the instructions for azd deployment with the [ACA deployment option](https://github.com/Azure/Vector-Search-AI-Assistant?tab=readme-ov-file#aca-deployment) I get multiple errors.
```
ERROR: error executing step command 'provision': initializing provisioning manager: failed to compile bicep template: failed running bicep build: exit code: 1, stdout: , stderr:
.... lots of warning ....
C:\repos\sandbox\Vector-Search-AI-Assistant\aca\infra\main.bicep(219,34) : Error BCP091: An error occurred reading file. Could not find a part of the path 'C:\repos\sandbox\Vector-Search-AI-Assistant\SystemPrompts\RetailAssistant\Default.txt'.
C:\repos\sandbox\Vector-Search-AI-Assistant\aca\infra\main.bicep(226,34) : Error BCP091: An error occurred reading file. Could not find a part of the path 'C:\repos\sandbox\Vector-Search-AI-Assistant\SystemPrompts\RetailAssistant\Limited.txt'.
C:\repos\sandbox\Vector-Search-AI-Assistant\aca\infra\main.bicep(233,34) : Error BCP091: An error occurred reading file. Could not find a part of the path 'C:\repos\sandbox\Vector-Search-AI-Assistant\SystemPrompts\Summarizer\TwoWords.txt'.
C:\repos\sandbox\Vector-Search-AI-Assistant\aca\infra\main.bicep(240,34) : Error BCP091: An error occurred reading file. Could not find a part of the path 'C:\repos\sandbox\Vector-Search-AI-Assistant\MemorySources\BlobMemorySourceConfig.json'.
C:\repos\sandbox\Vector-Search-AI-Assistant\aca\infra\main.bicep(247,34) : Error BCP091: An error occurred reading file. Could not find a part of the path 'C:\repos\sandbox\Vector-Search-AI-Assistant\MemorySources\return-policies.txt'.
C:\repos\sandbox\Vector-Search-AI-Assistant\aca\infra\main.bicep(254,34) : Error BCP091: An error occurred reading file. Could not find a part of the path 'C:\repos\sandbox\Vector-Search-AI-Assistant\MemorySources\shipping-policies.txt'.
```
All of these are because the paths to the SK prompts are incorrect:
It is
```
module storage './shared/storage.bicep' = {
name: 'storage'
params: {
containers: [
{
name: 'system-prompt'
}
{
name: 'memory-source'
}
{
name: 'product-policy'
}
]
files: [
{
name: 'retailassistant-default-txt'
file: 'Default.txt'
path: 'RetailAssistant/Default.txt'
content: loadTextContent('../../SystemPrompts/RetailAssistant/Default.txt')
container: 'system-prompt'
}
```
But all the files are in the data folder
```
...
files: [
{
name: 'retailassistant-default-txt'
file: 'Default.txt'
path: 'RetailAssistant/Default.txt'
content: loadTextContent('../../data/SystemPrompts/RetailAssistant/Default.txt')
container: 'system-prompt'
}
```
Same applies to AKS bicep file.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.