|
@@ -32,6 +32,8 @@ from open_webui.config import (
|
|
|
PINECONE_CLOUD,
|
|
|
)
|
|
|
from open_webui.env import SRC_LOG_LEVELS
|
|
|
+from open_webui.retrieval.vector.utils import stringify_metadata
|
|
|
+
|
|
|
|
|
|
NO_LIMIT = 10000 # Reasonable limit to avoid overwhelming the system
|
|
|
BATCH_SIZE = 100 # Recommended batch size for Pinecone operations
|
|
@@ -183,7 +185,7 @@ class PineconeClient(VectorDBBase):
|
|
|
point = {
|
|
|
"id": item["id"],
|
|
|
"values": item["vector"],
|
|
|
- "metadata": metadata,
|
|
|
+ "metadata": stringify_metadata(metadata),
|
|
|
}
|
|
|
points.append(point)
|
|
|
return points
|