Skip to content

The agent engineering platform.

Fix format string in pinecone error handling (#2897)

Peter Stolzccacf804a845
diff --git a/langchain/vectorstores/pinecone.py b/langchain/vectorstores/pinecone.py
index f06c5b9f05..cc2169ac16 100644
--- a/langchain/vectorstores/pinecone.py
+++ b/langchain/vectorstores/pinecone.py
@@ -218,7 +218,7 @@ class Pinecone(VectorStore):
else:
raise ValueError(
f"Index '{index_name}' not found in your Pinecone project. "
- "Did you mean one of the following indexes: {', '.join(indexes)}"
+ f"Did you mean one of the following indexes: {', '.join(indexes)}"
)
for i in range(0, len(texts), batch_size):