You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat: add upsert_text, query_text, fetch, and create_namespace to Rust SDK (#4)
* feat: add upsert_text, query_text, batch_query_text, fetch, and create_namespace
Implements the five operations that were missing from the Rust SDK,
bringing it to full parity with the Python, TypeScript, and Go SDKs.
New types (types.rs):
- EmbeddingModel enum (minilm / bge-small / e5-small)
- TextDocument, UpsertTextRequest, TextUpsertResponse
- QueryTextRequest, TextQueryResponse, TextSearchResult
- BatchQueryTextRequest, BatchQueryTextResponse
- FetchRequest, FetchResponse
- CreateNamespaceRequest
New client methods (client.rs):
- upsert_text() — POST /v1/namespaces/{ns}/upsert-text
- query_text() — POST /v1/namespaces/{ns}/query-text
- query_text_simple() — convenience wrapper
- batch_query_text() — POST /v1/namespaces/{ns}/batch-query-text
- fetch() — POST /v1/namespaces/{ns}/fetch
- fetch_by_ids() — convenience wrapper
- create_namespace() — POST /v1/namespaces/{ns}
Tests added for all new type builders and request constructors.
Tracked in internal issue DAK-5.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
* fix: apply cargo fmt to resolve CI format check failure
Fixes formatting issues in client.rs and types.rs that were causing
the Format CI check to fail on PR#4.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
---------
Co-authored-by: Dakera Ops <ops@dakera.ai>
Co-authored-by: Paperclip <noreply@paperclip.ing>
0 commit comments