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
- Improved parameter table formatting for clarity and added new optional fields: `enabled`, `url`, and `source_url`.
- Updated example POST and cURL commands to reflect the new parameters.
- Added details for PATCH/PUT requests, including optional fields for document updates.
- Enhanced GET request examples with additional query parameters for filtering and searching documents.
> | document | required | text | The content of the document. 10,000 token limit. |
431
-
> | title | required | text | The title of the document |
432
-
> | library_id | required | text | The ID of the library to which this document will be added |
433
-
> | external_id | optional | text | A unique ID provided by the client. If a POST request includes the same external_id as an existing record, the record will be updated instead of created. |
> | document | required | text | The content of the document. 10,000 token limit. |
431
+
> | title | required | text | The title of the document. |
432
+
> | library_id | required | text | The ID of the library to which this document will be added. |
433
+
> | external_id | optional | text | A unique ID provided by the client. If a POST includes the same external_id as an existing record, the record will be updated instead of created. |
434
+
> | enabled | optional | boolean | Whether the document is enabled. |
435
+
> | url | optional | text | URL for the document. |
436
+
> | source_url | optional | text | Source URL for the document. |
434
437
435
438
##### Example POST Data
436
439
Make sure you have the top level "document" attribute.
@@ -439,6 +442,10 @@ Make sure you have the top level "document" attribute.
439
442
>"document":"Restart your computer to fix it.",
440
443
>"title":"How to fix a computer",
441
444
>"library_id":23,
445
+
>"external_id":"optional_unique_id",
446
+
>"enabled":true,
447
+
>"url":"https://example.com/doc",
448
+
>"source_url":"https://example.com/source"
442
449
> }
443
450
>```
444
451
@@ -452,7 +459,31 @@ Make sure you have the top level "document" attribute.
| since | optional | string | Return documents with `updated_at` after this time. ISO 8601, RFC 3339, or formats like `YYYY-MM-DD`, `YYYY-MM-DDTHH:MM:SSZ`. |
553
+
| until | optional | string | Return documents with `updated_at` before this time. Same date formats as `since`. |
554
+
| contains | optional | string | Full-text search: return documents that contain this text (takes priority over `similar_to`). |
555
+
| similar_to | optional | string | Semantic search: return documents similar to this text (ignored if `contains` is present). Results ordered by similarity. |
556
+
| sort | optional | string | Sort order: `questions` (by questions count desc), `tokens` (by token count desc); default = `updated_at` desc. Ignored when using `contains` or `similar_to`. |
518
557
519
558
##### Responses
520
559
@@ -541,7 +580,9 @@ Each object in the `documents` array includes:
0 commit comments