Skip to content

Commit

Permalink
fix tidb full-text-search vector missed (#11337)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong authored Dec 4, 2024
1 parent f933af9 commit d7c1f43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ def search_by_full_text(self, query: str, **kwargs: Any) -> list[Document]:
for result in results:
if result:
document = self._document_from_scored_point(result, Field.CONTENT_KEY.value, Field.METADATA_KEY.value)
document.metadata["vector"] = result.vector
documents.append(document)

return documents
Expand All @@ -394,6 +393,7 @@ def _document_from_scored_point(
) -> Document:
return Document(
page_content=scored_point.payload.get(content_payload_key),
vector=scored_point.vector,
metadata=scored_point.payload.get(metadata_payload_key) or {},
)

Expand Down

0 comments on commit d7c1f43

Please sign in to comment.