Skip to content

Quickstart

  • Python 3.11+
  • A workspace API key (open the dashboard)
  • A configured API origin for your workspace
Terminal window
python3 -m pip install schift-cli
export SCHIFT_API_KEY=sch_...
export SCHIFT_API_URL=https://api.example.com/v1

Start with one document. That proves your key, API origin, upload path, and search path before you build a UI around it.

Terminal window
schift db create support-docs
schift upload ./handbook.pdf --bucket support-docs
schift search "How do I reset my password?" --bucket support-docs --top-k 5

The search command returns the best matching chunks and source metadata.

Use the TypeScript SDK when you are ready to embed the retrieval path in an app or service.

import { WorkspaceClient, Agent, RAG } from "@schift-io/sdk";
const client = new WorkspaceClient({ apiKey: process.env.SCHIFT_API_KEY });
const rag = new RAG({ bucket: "support-docs" }, client.transport);
const agent = new Agent({
name: "Support Bot",
instructions: "Answer questions using the knowledge base.",
rag,
model: "gpt-4o-mini",
transport: client.transport,
});
  • WorkspaceClient connects to the configured API origin
  • RAG wraps a document bucket (OCR, chunking, embedding, search — all managed)
  • Agent runs a ReAct loop: receive question -> search docs -> generate answer

New projects should start from the dashboard APM/workspace-pack flow or the SDK shape above. create-schift remains only as a deprecated compatibility scaffold for older generated projects.

  • Agent concepts — how the ReAct loop works
  • Tools — add custom capabilities to your agent
  • RAG — upload documents and configure search