Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DosticJelena committed Nov 22, 2023
1 parent e2d6128 commit 8ba159f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llama_index/vector_stores/pinecone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8ba159f

Please sign in to comment.