[docs]classBaseVectorStore:support_similarity_metrics=["l2","ip","cosine"]def__init__(self,embedding_model:str,similarity_metric:str="cosine",embedding_batch:int=100,):self.embedding=embedding_models[embedding_model]()self.embedding_batch=embedding_batchself.embedding.embed_batch_size=embedding_batchassert(similarity_metricinself.support_similarity_metrics),f"search method {similarity_metric} is not supported"self.similarity_metric=similarity_metric