-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: retrieve vectors when fetching records (#4063)
# Description This PR add support to `include=vectors` and `include=vectors:vector_settings_id_01,vector_settings_id_02` parameters in the following endpoints: * `GET /api/v1/datasets/:dataset_id/records` * `GET /api/v1/me/datasets/:dataset_id/records` * `GET /api/v1/me/datasets/:dataset_id/records/search` Possible improvements to this PR: - [x] Use vector names instead of vector settings ids for `include` like `include=vectors:vector_name_01,vector_name_02`. - [ ] Add support for `include` parameter to `GET /api/v1/records/:record_id` endpoint. Closes #4051 **Type of change** - [x] New feature (non-breaking change which adds functionality) **How Has This Been Tested** - [x] Running tests locally. **Checklist** - [ ] I added relevant documentation - [x] follows the style guidelines of this project - [x] I did a self-review of my code - [ ] I made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK) (see text above) - [x] I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/) --------- Co-authored-by: gabrielmbmb <[email protected]>
- Loading branch information
1 parent
c743532
commit 9dd3522
Showing
7 changed files
with
532 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.