Skip to content

Commit d7c1f43

Browse files
authored
fix tidb full-text-search vector missed (#11337)
1 parent f933af9 commit d7c1f43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/core/rag/datasource/vdb/tidb_on_qdrant/tidb_on_qdrant_vector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ def search_by_full_text(self, query: str, **kwargs: Any) -> list[Document]:
375375
for result in results:
376376
if result:
377377
document = self._document_from_scored_point(result, Field.CONTENT_KEY.value, Field.METADATA_KEY.value)
378-
document.metadata["vector"] = result.vector
379378
documents.append(document)
380379

381380
return documents
@@ -394,6 +393,7 @@ def _document_from_scored_point(
394393
) -> Document:
395394
return Document(
396395
page_content=scored_point.payload.get(content_payload_key),
396+
vector=scored_point.vector,
397397
metadata=scored_point.payload.get(metadata_payload_key) or {},
398398
)
399399

0 commit comments

Comments
 (0)