feat (pinecone): Add namespace support and improve type safety (#3216)

This commit is contained in:
Enam Biswas
2025-08-01 11:53:34 -07:00
committed by GitHub
parent 0e03d69ed1
commit 907328aafe
4 changed files with 88 additions and 11 deletions
+1
View File
@@ -18,6 +18,7 @@ class PineconeConfig(BaseModel):
metric: str = Field("cosine", description="Distance metric for vector similarity")
batch_size: int = Field(100, description="Batch size for operations")
extra_params: Optional[Dict[str, Any]] = Field(None, description="Additional parameters for Pinecone client")
namespace: Optional[str] = Field(None, description="Namespace for the collection")
@model_validator(mode="before")
@classmethod