...
If there is real requirement from users to let search return vector in output, we can achieve this in SDK level.
Design Details
Query supporting vector field in output can be divided into 2 steps:
- in load segment stage, create VectorFieldInfo for vector fields, and save it into segment struct
- in the end of query stage,
- load vector field's data if needed
- get vector data, fill in query result
- Add new field VectorFieldInfo into segment struct to return vector field related information
...