Document Ingestion
Adds plain text to a collection.
Adds plain text to a collection.
post/ingest/plain_text
Request
- Base URLhttps://h2ogpte.genai.h2o.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
collection_idstring required
String id of the collection to add the ingested documents into.
file_namestring required
String of the file name to use for the document.
gen_doc_summariesboolean
Whether to auto-generate document summaries (uses LLM).
gen_doc_questionsboolean
Whether to auto-generate sample questions for each document (uses LLM).
timeoutnumber double
Timeout in seconds
metadatastring
String with json-encoded metadata for the document.
Request body text/plain
string required
Response
Successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.