Skip to content

Commit

Permalink
Merge pull request #80 from ross-p-smith/ross/brandingChange
Browse files Browse the repository at this point in the history
Product rebrand after Ignite - now called `Azure AI Search`
  • Loading branch information
gmndrg authored Nov 15, 2023
2 parents b7cf05f + 8521b37 commit 2917733
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code/admin/pages/01_Ingest_Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def upload_file(bytes_data: bytes, file_name: str, content_type: Optional[str] =
with st.expander("Add documents in Batch", expanded=True):
config = ConfigHelper.get_active_config_or_default()
file_type = [processor.document_type for processor in config.document_processors]
uploaded_files = st.file_uploader("Upload a document to add it to the Azure Storage Account, compute embeddings and add them to the Azure Cognitive Search index. Check your configuration for available document processors.", type=file_type, accept_multiple_files=True)
uploaded_files = st.file_uploader("Upload a document to add it to the Azure Storage Account, compute embeddings and add them to the Azure AI Search index. Check your configuration for available document processors.", type=file_type, accept_multiple_files=True)
if uploaded_files is not None:
for up in uploaded_files:
# To read file as bytes:
Expand Down
4 changes: 2 additions & 2 deletions code/utilities/tests/test_Orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
def test_orchestrator_openai_function():
message_orchestrator = Orchestrator()
strategy = "openai_function"
messages = message_orchestrator.handle_message(user_message="What's Azure Cognitive Search?", chat_history=[], conversation_id="test_openai_function", orchestrator = OrchestrationSettings({"strategy" : strategy}))
messages = message_orchestrator.handle_message(user_message="What's Azure AI Search?", chat_history=[], conversation_id="test_openai_function", orchestrator = OrchestrationSettings({"strategy" : strategy}))
assert messages[-1]['role'] == 'assistant'
assert messages[-1]['content'] != ''

def test_orchestrator_langchain():
message_orchestrator = Orchestrator()
strategy = "langchain"
messages = message_orchestrator.handle_message(user_message="What's Azure Cognitive Search?", chat_history=[], conversation_id="test_langchain", orchestrator = OrchestrationSettings({"strategy" : strategy}))
messages = message_orchestrator.handle_message(user_message="What's Azure AI Search?", chat_history=[], conversation_id="test_langchain", orchestrator = OrchestrationSettings({"strategy" : strategy}))
assert messages[-1]['role'] == 'assistant'
assert messages[-1]['content'] != ''

6 changes: 3 additions & 3 deletions infrastructure/deployment.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ param AzureOpenAIStream string = 'true'
@description('Azure OpenAI Embedding Model')
param AzureOpenAIEmbeddingModel string = 'text-embedding-ada-002'

@description('Azure Cognitive Search Resource')
@description('Azure AI Search Resource')
param AzureCognitiveSearch string = '${ResourcePrefix}-search'

@description('The SKU of the search service you want to create. E.g. free or standard')
Expand All @@ -114,10 +114,10 @@ param AzureCognitiveSearch string = '${ResourcePrefix}-search'
])
param AzureCognitiveSearchSku string = 'standard'

@description('Azure Cognitive Search Index')
@description('Azure AI Search Index')
param AzureSearchIndex string = '${ResourcePrefix}-index'

@description('Azure Cognitive Search Conversation Log Index')
@description('Azure AI Search Conversation Log Index')
param AzureSearchConversationLogIndex string = 'conversations'

@description('Name of Storage Account')
Expand Down
6 changes: 3 additions & 3 deletions infrastructure/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
"type": "string",
"defaultValue": "[format('{0}-search', parameters('ResourcePrefix'))]",
"metadata": {
"description": "Azure Cognitive Search Resource"
"description": "Azure AI Search Resource"
}
},
"AzureCognitiveSearchSku": {
Expand All @@ -244,14 +244,14 @@
"type": "string",
"defaultValue": "[format('{0}-index', parameters('ResourcePrefix'))]",
"metadata": {
"description": "Azure Cognitive Search Index"
"description": "Azure AI Search Index"
}
},
"AzureSearchConversationLogIndex": {
"type": "string",
"defaultValue": "conversations",
"metadata": {
"description": "Azure Cognitive Search Conversation Log Index"
"description": "Azure AI Search Conversation Log Index"
}
},
"StorageAccountName": {
Expand Down

0 comments on commit 2917733

Please sign in to comment.