mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-25 16:13:25 +00:00
community[patch]: add vector param to index query for pinecone vec store (#16054)
This commit is contained in:
parent
476fb328ee
commit
ca288d8f2c
@ -201,7 +201,7 @@ class Pinecone(VectorStore):
|
||||
namespace = self._namespace
|
||||
docs = []
|
||||
results = self._index.query(
|
||||
[embedding],
|
||||
vector=[embedding],
|
||||
top_k=k,
|
||||
include_metadata=True,
|
||||
namespace=namespace,
|
||||
@ -299,7 +299,7 @@ class Pinecone(VectorStore):
|
||||
if namespace is None:
|
||||
namespace = self._namespace
|
||||
results = self._index.query(
|
||||
[embedding],
|
||||
vector=[embedding],
|
||||
top_k=fetch_k,
|
||||
include_values=True,
|
||||
include_metadata=True,
|
||||
|
Loading…
Reference in New Issue
Block a user