Azure-Samples / contoso-chat

This sample has the full End2End process of creating RAG application with Prompty and AI Studio. It includes GPT 3.5 Turbo LLM application code, evaluations, deployment automation with AZD CLI, GitHub actions for evaluation and deployment and intent mapping for multiple LLM task mapping.
MIT License
468 stars 2.88k forks source link

Error in connection type #45

Closed jvargh closed 10 months ago

jvargh commented 10 months ago

Get this error when running evaluate-chat-prompt-flow.ipynb, which points to the connection definition in AI Studio. Could a sample be provided to compare?

...
Reason: NotSupported ConnectionType 0 for connection contoso-cosmos. 
Error message: (UserError) NotSupported ConnectionType 0 for connection contoso-cosmos.
Code: UserError
cassiebreviu commented 10 months ago

The contoso-cosmos custom connection should look like this:

image
jvargh commented 10 months ago

Had it recreated but error remains. Below shows studio and local formats. Thoughts?

image

nitya commented 10 months ago

Looking at the output of your screenshot, you need to have 4 key-value pairs and the first one should be called "key". In the list above, I see "key1" in the config but no "key"

jvargh commented 10 months ago

it should be taking 'key' from secrets. Running create-connections notebook it did create the below. Will not allow using name 'key' in configs. Error from above remains. Let know if you see the same image

jvargh commented 10 months ago

PG working on fixing it. For a workaround create the connection in ML studio in promptflow >connections.