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
Copy file name to clipboardExpand all lines: fern/openapi/openapi.json
+124-1Lines changed: 124 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@
137
137
"Ingestion"
138
138
],
139
139
"summary": "Ingest",
140
-
"description": "Ingests and processes a file, storing its chunks to be used as context.\n\nThe context obtained from files is later used in\n`/chat/completions`, `/completions`, and `/chunks` APIs.\n\nMost common document\nformats are supported, but you may be prompted to install an extra dependency to\nmanage a specific file type.\n\nA file can generate different Documents (for example a PDF generates one Document\nper page). All Documents IDs are returned in the response, together with the\nextracted Metadata (which is later used to improve context retrieval). Those IDs\ncan be used to filter the context used to create responses in\n`/chat/completions`, `/completions`, and `/chunks` APIs.",
140
+
"description": "Ingests and processes a file.\n\nDeprecated. Use ingest/file instead.",
"description": "Ingests and processes a file, storing its chunks to be used as context.\n\nThe context obtained from files is later used in\n`/chat/completions`, `/completions`, and `/chunks` APIs.\n\nMost common document\nformats are supported, but you may be prompted to install an extra dependency to\nmanage a specific file type.\n\nA file can generate different Documents (for example a PDF generates one Document\nper page). All Documents IDs are returned in the response, together with the\nextracted Metadata (which is later used to improve context retrieval). Those IDs\ncan be used to filter the context used to create responses in\n`/chat/completions`, `/completions`, and `/chunks` APIs.",
"description": "Ingests and processes a text, storing its chunks to be used as context.\n\nThe context obtained from files is later used in\n`/chat/completions`, `/completions`, and `/chunks` APIs.\n\nA Document will be generated with the given text. The Document\nID is returned in the response, together with the\nextracted Metadata (which is later used to improve context retrieval). That ID\ncan be used to filter the context used to create responses in\n`/chat/completions`, `/completions`, and `/chunks` APIs.",
226
+
"operationId": "ingest_text_v1_ingest_text_post",
227
+
"requestBody": {
228
+
"content": {
229
+
"application/json": {
230
+
"schema": {
231
+
"$ref": "#/components/schemas/IngestTextBody"
232
+
}
233
+
}
234
+
},
235
+
"required": true
236
+
},
152
237
"responses": {
153
238
"200": {
154
239
"description": "Successful Response",
@@ -303,6 +388,20 @@
303
388
},
304
389
"components": {
305
390
"schemas": {
391
+
"Body_ingest_file_v1_ingest_file_post": {
392
+
"properties": {
393
+
"file": {
394
+
"type": "string",
395
+
"format": "binary",
396
+
"title": "File"
397
+
}
398
+
},
399
+
"type": "object",
400
+
"required": [
401
+
"file"
402
+
],
403
+
"title": "Body_ingest_file_v1_ingest_file_post"
404
+
},
306
405
"Body_ingest_v1_ingest_post": {
307
406
"properties": {
308
407
"file": {
@@ -735,6 +834,30 @@
735
834
],
736
835
"title": "IngestResponse"
737
836
},
837
+
"IngestTextBody": {
838
+
"properties": {
839
+
"file_name": {
840
+
"type": "string",
841
+
"title": "File Name",
842
+
"examples": [
843
+
"Avatar: The Last Airbender"
844
+
]
845
+
},
846
+
"text": {
847
+
"type": "string",
848
+
"title": "Text",
849
+
"examples": [
850
+
"Avatar is set in an Asian and Arctic-inspired world in which some people can telekinetically manipulate one of the four elements\u2014water, earth, fire or air\u2014through practices known as 'bending', inspired by Chinese martial arts."
0 commit comments