ποΈ Upload & Ingest Documents
Document ingestion is the first step in making your unstructured files queryable via CIQ. Once a file is ingested, itβs indexed and becomes available for search, classification, and Q&A.
π Supported File Typesβ
Currently supported:
-
β PDF
Coming soon: -
π DOCX
-
π TXT
π How to Ingest a Documentβ
Use the SDK method below to upload and process a document.
- Python
- JavaScript
from ninebit_ciq import NineBitCIQClient
client = NineBitCIQClient(api_key="YOUR_API_KEY")
response = client.ingest_file("files/report.pdf")
print(response)
import { CIQClient } from '@ninebit/ciq';
const client = new CIQClient("YOUR_API_KEY");
await client.ingestFile("files/report.pdf");