From f812fa5a0c183711f61e36ac262148fe3ba19f54 Mon Sep 17 00:00:00 2001 From: Oz Ugurlu Date: Tue, 27 Feb 2024 10:22:08 +0300 Subject: [PATCH] Fix the kwargs doubling issue. --- .../llama_index/vector_stores/pinecone/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llama-index-integrations/vector_stores/llama-index-vector-stores-pinecone/llama_index/vector_stores/pinecone/base.py b/llama-index-integrations/vector_stores/llama-index-vector-stores-pinecone/llama_index/vector_stores/pinecone/base.py index 4f91202552d06..85f6808d0b7e1 100644 --- a/llama-index-integrations/vector_stores/llama-index-vector-stores-pinecone/llama_index/vector_stores/pinecone/base.py +++ b/llama-index-integrations/vector_stores/llama-index-vector-stores-pinecone/llama_index/vector_stores/pinecone/base.py @@ -427,8 +427,8 @@ def query(self, query: VectorStoreQuery, **kwargs: Any) -> VectorStoreQueryResul vector=query_embedding, sparse_vector=sparse_vector, top_k=query.similarity_top_k, - include_values=True, - include_metadata=True, + include_values=kwargs.pop("include_values", True), + include_metadata=kwargs.pop("include_metadata", True), namespace=self.namespace, filter=filter, **kwargs,