Tutorials
Create the first crate
Sign in, choose Create your first crate, enter a name and description, and open it. The creator becomes Owner. Use Switch crate to move between memberships.
Ingest and search
- Open Sources and create a Website or Git source.
- Open the source and add one or more ingestion jobs.
- Start a run and follow its source-item/acquisition status.
- Open Documents after normalization completes.
- Search from the crate overview. Results always come from this crate's active namespace.
API equivalent:
curl -X POST -H "X-API-KEY: $KEY" -H "Content-Type: application/json" \
"http://localhost:8080/api/v1/crates/$CRATE/sources" \
-d '{"name":"Docs website","connectorType":"HTTPS","configuration":{"website":{"url":"https://example.com"}}}'
Add a teammate
An installation administrator creates the account. A crate Owner then adds its email as Viewer, Editor, or Owner from the members API:
curl -X PUT -H "X-API-KEY: $OWNER_KEY" -H "Content-Type: application/json" \
"http://localhost:8080/api/v1/crates/$CRATE/members" \
-d '{"email":"editor@example.com","role":"EDITOR"}'
Create a service key
curl -X POST -H "X-API-KEY: $OWNER_KEY" -H "Content-Type: application/json" \
"http://localhost:8080/api/v1/crates/$CRATE/api-keys" \
-d '{"name":"ingestion","role":"EDITOR"}'
Copy the returned cc_ token immediately.
Export and import
curl -X POST -H "X-API-KEY: $OWNER_KEY" \
-o crate.zip "http://localhost:8080/api/v1/crates/$CRATE/exports?includeArtifacts=true"
curl -X POST -H "X-API-KEY: $PERSONAL_KEY" \
-F "file=@crate.zip" "http://localhost:8080/api/v1/crate-imports"
The imported crate has new identifiers and no provider or source secrets.
Change an embedding model
Update the crate provider settings. ContextCrate creates a background generation and keeps the prior generation searchable. Monitor /api/v1/crates/{crateId}/index until the new generation becomes ACTIVE.