assert search_task_obj == "Invalid JSON object passed as argument." except: # noqa: E722 raised = True assert raised == False, "Raised Exception in searching task" Collaborator dhrubo-os Jun 15, 2023 can we make a separate function for this to test? This chain of flow test was...
What is the bug? FAILED test_opensearchpy/test_server/test_rest_api_spec.py::test_rest_api_spec[OpenSearch-main/rest-api-spec/src/main/resources/rest-api-spec/test/search/highlight/30_max_analyzed_offset[5]] How can one reproduce the bug? Latest builds are failing in this REST spec....
Search model --> https://opensearch.org/docs/latest/ml-commons-plugin/api/#search-modelExecute api --> https://opensearch.org/docs/latest/ml-commons-plugin/api/#execute : For testing after development, we can use this request:POST _plugins/_ml/_execute/local_sample_calculator { "operation...
added documentation for ml_commons by@dhrubo-osin#23 removing installation guide + adding more md files by@dhrubo-osin#26 Add release workflows by@gaiksayain#27 add semantic search training script by@mingshlin#18 updating version by@dhrubo-osin#33 add demo notebook and return model by@ming...
def validate_search_model_group_parameters(query: dict): _validate_model_group_query(query) def validate_profile_input(path_parameter, payload): if path_parameter is not None and not isinstance(path_parameter, str): raise ValueError("path_parameter needs to be a string or None") if payl...
OpenSearchVectorSearch(opensearch_url=hostname, embedding_function=self.embeddings, http_auth=self.http_auth, index_name=index_name, use_ssl = True, connection_class = RequestsHttpConnection ) return docsearch except Exception: print(traceback.format_exc()) def getSimilaritySearch(self,user_query: ...