Skip to main content

🚀 Get Started with CIQ in Minutes

Welcome to NineBit CIQ — your private, developer-friendly platform for building intelligent document workflows using RAG (Retrieval-Augmented Generation), classification, and taxonomy extraction.

This guide will help you:

  • 📁 Upload your first document
  • 💬 Query it using natural language
  • ⚙️ Run everything via Python or Node.js SDK

1️⃣ Install the SDK

pip install ninebit-ciq

2️⃣ Set Up the Client

from ninebit_ciq import NineBitCIQClient

client = NineBitCIQClient(
api_key="<your-api-key>"
)

🔑 Where to Get Your API Key

⚠️ To use the SDK, you’ll need your unique CIQ API key.

🧭 Go to ciq.ninebit.in, click “Register” (or Login if you already have an account), and your API key will be visible in the bottom-left corner of the dashboard.

3️⃣ Upload a Document

def on_done(error, data):
if error:
print(f"Ingest_file failed: {error}")
else:
print(f"Ingest_file succeeded: {str(data)}")

client.ingest_file(file="files/sample.pdf", callback=on_done)

4️⃣ Ask a Question

query = "What are land breeze?"
response = client.rag_query(query=query)
print(f"Query response is {response}")
## ✅ You're Done!

You’ve just:
- Uploaded a document to CIQ
- Queried it using natural language
- Retrieved AI-generated answers using RAG

Return to Home.