From 7c3d70d272d5d00829922c6c38bb03a82a45bc46 Mon Sep 17 00:00:00 2001 From: Anushree Kaipa Ramanath Date: Wed, 24 Apr 2024 11:34:39 -0700 Subject: [PATCH] Update Flow Model Version of Playground-ayod-rag Template (#2765) * Update description.md * Update model version in model.yaml * Update model version spec.yaml * Update search index info in test_config.json * Update query in test_data.json --- assets/promptflow/models/playground-ayod-rag/description.md | 6 +++--- assets/promptflow/models/playground-ayod-rag/model.yaml | 2 +- assets/promptflow/models/playground-ayod-rag/spec.yaml | 2 +- .../test-configs/playground-ayod-rag/test_config.json | 2 +- .../test-configs/playground-ayod-rag/test_data.json | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/assets/promptflow/models/playground-ayod-rag/description.md b/assets/promptflow/models/playground-ayod-rag/description.md index 4b875271ce..539c36c115 100644 --- a/assets/promptflow/models/playground-ayod-rag/description.md +++ b/assets/promptflow/models/playground-ayod-rag/description.md @@ -27,7 +27,7 @@ Batch | N/A | N/A { "content": "

the TrailWalker Hiking Shoes for a weekend hiking trip, and they exceeded my expectations. The fit is comfortable, providing excellent support throughout the journey. The traction is impressive, allowing me to confidently tackle various terrains. The shoes are also durable, showing no signs of wear after a challenging hike. My only minor complaint is that they could provide slightly more cushioning for longer treks. Overall, these shoes are a reliable choice for outdoor enthusiasts.\\n\\n2) Rating: 5\\n

", "score": 0.06557377049180328, - "id": "aHR0cHM6Ly9wcnJpaGFuYW1sc3Rv", + "metadata": null, "title": "# Information about product item_number: 11\\nTrailWalker Hiking Shoes, price $110", "filepath": "product_info_11.md", "url": "https://foo.blob.core.windows.net/product-info/product_info_11.md", @@ -36,7 +36,7 @@ Batch | N/A | N/A { "content": "

of the laces by pulling both ends simultaneously. Find the desired tightness and comfort level.\\n4. Push the lace lock down to secure the laces in place.\\n5. Tuck any excess lace into the lace pocket for safety and to prevent tripping.\\n\\nNote: It's recommended to wear hiking socks for the best fit and to prevent blisters or discomfort.\\n\\n

", "score": 0.06451612903225806, - "id": "aHR0cHM6Ly9wcnJpa", + "metadata": null, "title": "# Information about product item_number: 11\\nTrailWalker Hiking Shoes, price $110", "filepath": "product_info_11.md", "url": "https://foo.blob.core.windows.net/product-info/product_info_11.md", @@ -45,7 +45,7 @@ Batch | N/A | N/A { "content": "

disregard safety precautions: While the TrekReady Hiking Boots provide support and protection, they do not guarantee immunity from accidents or injuries. Always exercise caution and follow proper hiking safety guidelines, such as using trekking poles, wearing appropriate clothing, and being aware of your surroundings.\\n

", "score": 0.015384615384615385, - "id": "aHR0c1iMTgwTG0xazAvY2y5qc29u0", + "metadata": null, "title": "# Information about product item_number: 4\\nTrekReady Hiking Boots, price $140", "filepath": "product_info_4.md", "url": "https://foo.blob.core.windows.net/product-info/product_info_4.md", diff --git a/assets/promptflow/models/playground-ayod-rag/model.yaml b/assets/promptflow/models/playground-ayod-rag/model.yaml index 6327f9f78b..c0d1d91d92 100644 --- a/assets/promptflow/models/playground-ayod-rag/model.yaml +++ b/assets/promptflow/models/playground-ayod-rag/model.yaml @@ -1,6 +1,6 @@ path: container_name: models - container_path: samples/playground_ayod_rag/v3/models + container_path: samples/playground_ayod_rag/v4/models storage_name: wedpromptflowragsamples type: azureblob publish: diff --git a/assets/promptflow/models/playground-ayod-rag/spec.yaml b/assets/promptflow/models/playground-ayod-rag/spec.yaml index aa13b4c054..2b99b5cdb1 100644 --- a/assets/promptflow/models/playground-ayod-rag/spec.yaml +++ b/assets/promptflow/models/playground-ayod-rag/spec.yaml @@ -9,4 +9,4 @@ properties: azureml.promptflow.description: Create an advanced RAG flow modeled on the implementation of Azure AI Playground - on Your Data. inference-min-sku-spec: 2|0|14|28 inference-recommended-sku: Standard_DS3_v2 -version: 3 +version: 4 diff --git a/scripts/promptflow-ci/test-configs/playground-ayod-rag/test_config.json b/scripts/promptflow-ci/test-configs/playground-ayod-rag/test_config.json index 447ee03641..d9dffd15a1 100644 --- a/scripts/promptflow-ci/test-configs/playground-ayod-rag/test_config.json +++ b/scripts/promptflow-ci/test-configs/playground-ayod-rag/test_config.json @@ -10,7 +10,7 @@ { "name": "querySearchResource", "inputs": { - "mlindex_content": "embeddings:\r\n kind: none\r\n schema_version: '2'\r\nindex:\r\n api_version: 2023-07-01-Preview\r\n connection:\r\n id: \/subscriptions\/96aede12-2f73-41cb-b983-6d11a904839b\/resourceGroups\/promptflow\/providers\/Microsoft.MachineLearningServices\/workspaces\/chjinche-pf-eus\/connections\/AzureAISearch\r\n connection_type: workspace_connection\r\n endpoint: https:\/\/cogsearch-embeddingstore.search.windows.net\r\n engine: azure-sdk\r\n field_mapping:\r\n content: content\r\n embedding: null\r\n metadata: null\r\n index: test-vector-index-acs-built-for-awesome-vector-search\r\n kind: acs\r\n semantic_configuration_name: default", + "mlindex_content": "embeddings:\r\n kind: none\r\n schema_version: '2'\r\nindex:\r\n api_version: 2023-07-01-preview\r\n connection:\r\n id: \/subscriptions\/96aede12-2f73-41cb-b983-6d11a904839b\/resourceGroups\/promptflow\/providers\/Microsoft.MachineLearningServices\/workspaces\/chjinche-pf-eus\/connections\/rawan-wed-test\r\n connection_type: workspace_connection\r\n endpoint: https:\/\/rawan-wed-test.search.windows.net\r\n engine: azure-sdk\r\n field_mapping:\r\n content: content\r\n filename: filepath\r\n title: title\r\n url: url\r\n metadata: meta_json_string\r\n embedding: contentVector\r\n index: product-info-index\r\n kind: acs\r\n semantic_configuration_name: default\r\n", "query_type": "Semantic" } }, diff --git a/scripts/promptflow-ci/test-configs/playground-ayod-rag/test_data.json b/scripts/promptflow-ci/test-configs/playground-ayod-rag/test_data.json index d98afc4b65..35b89e9084 100644 --- a/scripts/promptflow-ci/test-configs/playground-ayod-rag/test_data.json +++ b/scripts/promptflow-ci/test-configs/playground-ayod-rag/test_data.json @@ -1,6 +1,6 @@ [ { - "query": "what is Faiss?", + "query": "how much does the trailwalker hiking shoes cost?", "chat_history": [] } ]