File tree Expand file tree Collapse file tree
tools/sdk-ai-bots/Embeddings/embedding Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def __init__(self):
3939 type = SearchFieldDataType .Collection (SearchFieldDataType .Single ),
4040 searchable = True ,
4141 vector_search_dimensions = len (embedding_function ("Text" )),
42- vector_search_configuration = "default "
42+ vector_search_profile_name = "myHnswProfile "
4343 ),
4444 SearchField (
4545 name = "Text" ,
@@ -79,8 +79,13 @@ def __init__(self):
7979 "metric" : "cosine" ,
8080 }
8181 )
82+ search_profile = {
83+ "name" : "myHnswProfile" ,
84+ "algorithm_configuration_name" : "searchAlgorithm" ,
85+ }
8286 vector_search : VectorSearch = VectorSearch (
83- algorithms = [algorithm_configuration ]
87+ algorithms = [algorithm_configuration ],
88+ profiles = [search_profile ]
8489 )
8590 azure_search : AzureSearch = AzureSearch (
8691 azure_search_endpoint = AZURE_SEARCH_ENDPOINT ,
You can’t perform that action at this time.
0 commit comments