Commit b02139d
authored
chore: pinecone response to DocumentChunkWithScore (#395)
When dealing with Pinecone occurs sporadically situations where `metadata["text"]` contains a datetime object somehow.
This raises an Internal Error since Pydantic is unable to create a DocumentChunkWithScore object.
We force the typing to str to fix this.
Example:
```
{'matches': [{'id': '68_1',
'metadata': {'document_id': '68',
'text': datetime.date(2265, 12, 1)},
'score': 0.760368824,
'values': []},
```1 parent b3459b1 commit b02139d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
0 commit comments