From 8ba159ff50b7fa9df2d0141982b3b720f86563a9 Mon Sep 17 00:00:00 2001 From: DosticJelena Date: Wed, 22 Nov 2023 10:58:45 +0100 Subject: [PATCH] fix linter issues --- llama_index/vector_stores/pinecone.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llama_index/vector_stores/pinecone.py b/llama_index/vector_stores/pinecone.py index accffebdc1af9..06959c110d65f 100644 --- a/llama_index/vector_stores/pinecone.py +++ b/llama_index/vector_stores/pinecone.py @@ -216,7 +216,7 @@ def __init__( and sparse_encoder is None and sparse_encoder_type != VectorStoreSparseEncoder.SPARSE_DICT ): - sparse_encoder = initialize_sparse_encoder(sparse_encoder_type) + sparse_encoder = initialize_sparse_encoder(sparse_encoder_type) # type: ignore self._sparse_encoder = sparse_encoder super().__init__( @@ -311,7 +311,7 @@ def add( if self.add_sparse_vector and self._tokenizer is not None: sparse_vector = generate_sparse_vectors( - self.sparse_encoder_type, + self.sparse_encoder_type, # type: ignore self._sparse_encoder, # type: ignore [node.get_content(metadata_mode=MetadataMode.EMBED)], self._tokenizer, @@ -378,7 +378,7 @@ def query(self, query: VectorStoreQuery, **kwargs: Any) -> VectorStoreQueryResul ) sparse_vector = generate_sparse_vectors( - self.sparse_encoder_type, + self.sparse_encoder_type, # type: ignore self._sparse_encoder, # type: ignore [query.query_str], self._tokenizer,