Skip to content

Commit 4ed3de0

Browse files
committed
fix: omit vec in query return struct
Signed-off-by: Keming <[email protected]>
1 parent 909e0f2 commit 4ed3de0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

qtext/schema.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,14 @@ def to_record(self) -> Record:
5252

5353
@classmethod
5454
def from_record(cls, record: Record) -> DefaultTable:
55+
"""Convert from a Record to a DefaultTable instance.
56+
57+
This method affects the final output of the query. Some of the fields can be
58+
omitted before returning to the user to avoid large transfers of data.
59+
"""
5560
return cls(
5661
id=record.id,
5762
text=record.text,
58-
vector=record.vector,
5963
score=record.score,
6064
boost=record.boost,
6165
title=record.title,

0 commit comments

Comments
 (0)