Skip to content

Commit

Permalink
Revert "chore: pinecone response to DocumentChunkWithScore (openai#395)"
Browse files Browse the repository at this point in the history
This reverts commit b02139d.
  • Loading branch information
adgrajales1 committed Jan 22, 2024
1 parent f527b02 commit 884e186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore/providers/pinecone_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def _single_query(query: QueryWithEmbedding) -> QueryResult:
result = DocumentChunkWithScore(
id=result.id,
score=score,
text=str(metadata["text"]) if metadata and "text" in metadata else "",
text=metadata["text"] if metadata and "text" in metadata else None,
metadata=metadata_without_text,
)
query_results.append(result)
Expand Down

0 comments on commit 884e186

Please # to comment.