Spaces:
Runtime error
Runtime error
pinecone Embedder change
Browse files
app.py
CHANGED
|
@@ -88,7 +88,7 @@ class MyPinecone(Pinecone):
|
|
| 88 |
ids = []
|
| 89 |
for i, text in enumerate(texts):
|
| 90 |
id = str(uuid.uuid4())
|
| 91 |
-
embedding = self._embedding_function(text)
|
| 92 |
metadata = metadatas[i] if metadatas else {}
|
| 93 |
metadata[self._text_key] = text
|
| 94 |
docs.append((id, embedding, metadata))
|
|
|
|
| 88 |
ids = []
|
| 89 |
for i, text in enumerate(texts):
|
| 90 |
id = str(uuid.uuid4())
|
| 91 |
+
embedding = self._embedding_function(text)#.tolist()
|
| 92 |
metadata = metadatas[i] if metadatas else {}
|
| 93 |
metadata[self._text_key] = text
|
| 94 |
docs.append((id, embedding, metadata))
|