Repository navigation
feat(openapi): add documented v30.2 collection and document params - #122
Open
haydenhoang wants to merge 7 commits into
Open
haydenhoang wants to merge 7 commits into
haydenhoang wants to merge 7 commits into
Conversation
CollectionSchema gains curation_sets, and the endpoint gains the
src_name and copy_documents query params that clone a collection.
Field gains cascade_delete, hnsw_params, truncate_len, and the
model_config properties for GCP regions, service accounts and tasks.
Field is shared, so this also covers fields[] in
PATCH /collections/{collectionName}.
nested and nested_array are left out: the server computes them and
overwrites any value sent.
PATCH /collections/{collectionName} accepts curation_sets in v30.2, as
it does synonym_sets.
GET /collections/{collectionName}/documents/{documentId} prunes the
returned document with them in v30.2, as search does.
DELETE /collections/{collectionName}/documents/{documentId} reads it in
v30.2, and responds 200 with just the id when the document is missing.
POST /collections/{collectionName}/documents reads
remote_embedding_timeout_ms and remote_embedding_num_tries in v30.2, as
import does.
POST /collections/{collectionName}/documents/import reads
remote_embedding_timeout_ms and remote_embedding_num_tries in v30.2.
DELETE /collections/{collectionName} reads it in v30.2 and compacts the
deleted collection's key range in the store.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Summary
Adds the missing collection and document params in Typesense v30.2:
Collections
POST /collections: thesrc_nameandcopy_documentsquery params, for cloning a collection.CollectionUpdateSchema:curation_setsField:cascade_delete(joins)hnsw_params(ef_construction,M) (vector search)truncate_lenembed.model_config, the GCP optionsregion,service_account,document_taskandquery_task.DELETE /collections/{collectionName}:compact_store.Documents
GET /collections/{collectionName}/documents/{documentId}:include_fieldsandexclude_fields.DELETE /collections/{collectionName}/documents/{documentId}:ignore_not_found.POST /collections/{collectionName}/documentsand.../documents/import:remote_embedding_timeout_msandremote_embedding_num_tries.Left out
The server also reads the following, but the v30.2 docs don't mention them, or only mention them for other endpoints. They're left out until they're documented:
num_memory_shardsembed.mappingembed.model_config.pathreturn_doc,return_id,validate_field_namesandtop_k_byon delete by filterbatch_sizeandvalidate_field_nameson exportdirty_valuesandvalidate_field_nameson update by filterPR Checklist