Hello Mohamed Hussein,
Is attaching data source at Chat completion Azure Ai Foundry permanent other words, can I attach files from the playground, then call Chat completions APIs directly? or it's related to active session only?
Attaching a data source in Azure AI Foundry is not permanent and is linked to the active session only. When you attach files from the playground, the connection remains active for the duration of that session but does not persist beyond it. This means that for each new session or API call, you must reattach the data source. If you need to use the same data source in multiple API calls, you will have to explicitly reference or reattach it each time.
Is the created vector index permanent? or I should attach it with every single call?
In Azure AI Foundry, both data source attachments and vector indexes are not permanent and are tied to the active session. When you attach files from the playground, the connection remains active only for that session, requiring you to reattach the data source for each new session or API call. Similarly, the vector index you create is not automatically permanent and must be referenced in every call to ensure the model can access the relevant data. However, if you are using a persistent vector index, such as Azure AI Search or another vector database, the index remains stored, and you can save the configuration for reuse. Still, you must explicitly reference it in each API call, especially when performing retrieval-augmented generation (RAG).
I hope you understand. And, if you have any further query do let us know.
Thank you!