[docs]classBaseVectorStore:support_similarity_metrics=["l2","ip","cosine"]def__init__(self,embedding_model:Union[str,List[dict]],similarity_metric:str="cosine",embedding_batch:int=100,):self.embedding=EmbeddingModel.load(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