skip to Main Content

AttributeError: 'str' object has no attribute 'get_token' in Python when using Azure Cognitive Search Vector Search

I am trying to do a Vector Search with Azure Cognitive Search in Python. This is my code: query = "What are the advantages of an open-source ai model?" search_client = SearchClient(AZURE_COGNITIVE_SEARCH_SERVICE_ENDPOINT, AZURE_COGNITIVE_SEARCH_INDEX_NAME, credential=AZURE_COGNITIVE_SEARCH_API_KEY) vector_query = VectorizableTextQuery(text=query, k=3, fields="content_vector") results…

VIEW QUESTION

Filter on MongoDB Vector Search doesn't work as expected

I'm building an aggregation pipeline in mongodb and I'm encountering some unexpected behaviour. The pipeline is as follow: [{ "$search":{ "index":"vector_index", "knnBeta":{ "vector":[ -0.30345699191093445, 0.6833441853523254, 1.2565147876739502, -0.6364057064056396 ], "path":"embedding", "k":10, "filter":{ "compound":{ "filter":[ { "text":{ "path":"my.field.name", "query":[ "value1", "value2", "value3",…

VIEW QUESTION
Back To Top
Search