5}),    function_aggregation="sum",    functions=[        FreshnessScoringFunction(            field_name="last_update",            boost=100,            parameters=FreshnessScoringParameters(boosting_duration="P2D"),            interpolation="linear"        )    ])index_name = "langchain-vector-demo-custom-scoring-profile"vector_store: AzureSearch = AzureSearch(    azure_search_endpoint=vector_store_address,    azure_search_key=vector_store_password,    index_name=index_name,    embedding_function=embeddings.embed_query,    fields=fields,    scoring_profiles = [sc],    default_scoring_profile = sc_name)# Adding same data with different last_update to show Scoring Profile effectfrom datetime import datetime, timedeltatoday = datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S-00:00')yesterday = (datetime.utcnow() - timedelta(days=1)).strftime('%Y-%m-%dT%H:%M:%S-00:00')one_month_ago = (datetime.utcnow() - timedelta(days=30)).strftime('%Y-%m-%dT%H:%M:%S-00:00')vector_store.add_texts(    ["Test 1", "Test 1", "Test 1"],    [        {"title": "Title 1", "source": "source1", "random": "10290", "last_update": today},        {"title": "Title 1", "source": "source1", "random": "48392", "last_update": yesterday},        {"title": "Title 1", "source": "source1", "random": "32893", "last_update": one_month_ago},    ],)    ['NjQyNTI5ZmMtNmVkYS00Njg5LTk2ZDgtMjM3OTY4NTJkYzFj',     'M2M0MGExZjAtMjhiZC00ZDkwLThmMTgtODNlN2Y2ZDVkMTMw',     'ZmFhMDE1NzMtMjZjNS00MTFiLTk0MTEtNGRkYjgwYWQwOTI0']res = vector_store.similarity_search(query="Test 1", k=3, search_type="similarity")res    [Document(page_content='Test 1', metadata={'title': 'Title 1', 'source': 'source1', 'random': '10290', 'last_update': '2023-07-13T10:47:39-00:00'}),     Document(page_content='Test 1', metadata={'title': 'Title 1', 'source': 'source1', 'random': '48392', 'last_update': '2023-07-12T10:47:39-00:00'}),     Document(page_content='Test 1', metadata={'title': 'Title 1', 'source': 'source1', 'random': '32893',
Azure Cognitive Search (formerly known as Azure Search) is a cloud search service that gives developers infrastructure, APIs, and tools for building a rich search experience over private, heterogeneous content in web, mobile, and enterprise applications.
Azure Cognitive Search (formerly known as Azure Search) is a cloud search service that gives developers infrastructure, APIs, and tools for building a rich search experience over private, heterogeneous content in web, mobile, and enterprise applications. ->: 5}),    function_aggregation="sum",    functions=[        FreshnessScoringFunction(            field_name="last_update",            boost=100,            parameters=FreshnessScoringParameters(boosting_duration="P2D"),            interpolation="linear"        )    ])index_name = "langchain-vector-demo-custom-scoring-profile"vector_store: AzureSearch = AzureSearch(    azure_search_endpoint=vector_store_address,    azure_search_key=vector_store_password,    index_name=index_name,    embedding_function=embeddings.embed_query,    fields=fields,    scoring_profiles = [sc],    default_scoring_profile = sc_name)# Adding same data with different last_update to show Scoring Profile effectfrom datetime import datetime, timedeltatoday = datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S-00:00')yesterday = (datetime.utcnow() - timedelta(days=1)).strftime('%Y-%m-%dT%H:%M:%S-00:00')one_month_ago = (datetime.utcnow() - timedelta(days=30)).strftime('%Y-%m-%dT%H:%M:%S-00:00')vector_store.add_texts(    ["Test 1", "Test 1", "Test 1"],    [        {"title": "Title 1", "source": "source1", "random": "10290", "last_update": today},        {"title": "Title 1", "source": "source1", "random": "48392", "last_update": yesterday},        {"title": "Title 1", "source": "source1", "random": "32893", "last_update": one_month_ago},    ],)    ['NjQyNTI5ZmMtNmVkYS00Njg5LTk2ZDgtMjM3OTY4NTJkYzFj',     'M2M0MGExZjAtMjhiZC00ZDkwLThmMTgtODNlN2Y2ZDVkMTMw',     'ZmFhMDE1NzMtMjZjNS00MTFiLTk0MTEtNGRkYjgwYWQwOTI0']res = vector_store.similarity_search(query="Test 1", k=3, search_type="similarity")res    [Document(page_content='Test 1', metadata={'title': 'Title 1', 'source': 'source1', 'random': '10290', 'last_update': '2023-07-13T10:47:39-00:00'}),     Document(page_content='Test 1', metadata={'title': 'Title 1', 'source': 'source1', 'random': '48392', 'last_update': '2023-07-12T10:47:39-00:00'}),     Document(page_content='Test 1', metadata={'title': 'Title 1', 'source': 'source1', 'random': '32893',