Skip to content
PuniDocs
Open Puni

Search commands


Find scenes by name and description, and manage what semantic search knows.

Keyword search stays in Puni; semantic search sends text to Voyage only when you say so. Read Scenes and the library for search in the studio.

puni searchFind scenes by name and description, and manage what semantic search knows.

CommandWhat it does
puni search keywordSearch names and descriptions without leaving Puni.
puni search semanticSend the query to Voyage and rank the descriptions you indexed.
puni search previewShow the exact text indexing would send, and its content hash.
puni search indexSend the previewed text to Voyage.
puni search unindexRemove the embedding; keep the scene and keyword search.
puni search refreshRebuild a page of the keyword index for older scenes. Repeat until done.

#search keyword

Search names and descriptions without leaving Puni.

puni search keyword --query text [--limit 10 --reusable] --base-url https://puni.design

FlagTypeDefaultValuesWhat it does
--query requiredstring1 to 256 characters.
--limitnumber101 to 25 results.
--reusablebooleanfalseOnly reusable objects.
--base-urlstringThe studio origin, such as https://puni.design. Defaults to PUNI_BASE_URL, else the one studio you are signed in to. HTTPS, except loopback.
--auth-filestringRead and write credentials in this file instead of ~/.config/puni/credentials.json.
--jsonbooleanfalseAnswer with one JSON envelope instead of the shell view. Exception: agent serve streams raw lifecycle JSON lines before its final envelope.
--help -hbooleanPrint the command list.

#Run search keyword

bash
puni search keyword --query 'amber lamp' --base-url https://puni.design --json

#search semantic

Send the query to Voyage and rank the descriptions you indexed.

puni search semantic --query text [--limit 10 --reusable] --base-url https://puni.design

FlagTypeDefaultValuesWhat it does
--query requiredstring1 to 256 characters.
--limitnumber101 to 25 results.
--reusablebooleanfalseOnly reusable objects.
--base-urlstringThe studio origin, such as https://puni.design. Defaults to PUNI_BASE_URL, else the one studio you are signed in to. HTTPS, except loopback.
--auth-filestringRead and write credentials in this file instead of ~/.config/puni/credentials.json.
--jsonbooleanfalseAnswer with one JSON envelope instead of the shell view. Exception: agent serve streams raw lifecycle JSON lines before its final envelope.
--help -hbooleanPrint the command list.

#Run search semantic

bash
puni search semantic --query 'warm desk lighting' --base-url https://puni.design --json

#search preview

Show the exact text indexing would send, and its content hash.

puni search preview PROJECT_ID --revision N --base-url https://puni.design

FlagTypeDefaultValuesWhat it does
--revision requirednumberThe saved revision.
--base-urlstringThe studio origin, such as https://puni.design. Defaults to PUNI_BASE_URL, else the one studio you are signed in to. HTTPS, except loopback.
--auth-filestringRead and write credentials in this file instead of ~/.config/puni/credentials.json.
--jsonbooleanfalseAnswer with one JSON envelope instead of the shell view. Exception: agent serve streams raw lifecycle JSON lines before its final envelope.
--help -hbooleanPrint the command list.

#Run search preview

bash
puni search preview amber-lamp --revision 3 --base-url https://puni.design --json

#search index

Send the previewed text to Voyage.

puni search index PROJECT_ID --revision N --base-url https://puni.design

FlagTypeDefaultValuesWhat it does
--revision requirednumberThe saved revision.
--base-urlstringThe studio origin, such as https://puni.design. Defaults to PUNI_BASE_URL, else the one studio you are signed in to. HTTPS, except loopback.
--auth-filestringRead and write credentials in this file instead of ~/.config/puni/credentials.json.
--jsonbooleanfalseAnswer with one JSON envelope instead of the shell view. Exception: agent serve streams raw lifecycle JSON lines before its final envelope.
--help -hbooleanPrint the command list.

#Run search index

bash
puni search index amber-lamp --revision 3 --base-url https://puni.design --json

#search unindex

Remove the embedding; keep the scene and keyword search.

puni search unindex PROJECT_ID --revision N --base-url https://puni.design

FlagTypeDefaultValuesWhat it does
--revision requirednumberThe saved revision.
--base-urlstringThe studio origin, such as https://puni.design. Defaults to PUNI_BASE_URL, else the one studio you are signed in to. HTTPS, except loopback.
--auth-filestringRead and write credentials in this file instead of ~/.config/puni/credentials.json.
--jsonbooleanfalseAnswer with one JSON envelope instead of the shell view. Exception: agent serve streams raw lifecycle JSON lines before its final envelope.
--help -hbooleanPrint the command list.

#Run search unindex

bash
puni search unindex amber-lamp --revision 3 --base-url https://puni.design --json

#search refresh

Rebuild a page of the keyword index for older scenes. Repeat until done.

puni search refresh [--cursor next] --base-url https://puni.design

FlagTypeDefaultValuesWhat it does
--cursorstringContinue from a previous page.
--base-urlstringThe studio origin, such as https://puni.design. Defaults to PUNI_BASE_URL, else the one studio you are signed in to. HTTPS, except loopback.
--auth-filestringRead and write credentials in this file instead of ~/.config/puni/credentials.json.
--jsonbooleanfalseAnswer with one JSON envelope instead of the shell view. Exception: agent serve streams raw lifecycle JSON lines before its final envelope.
--help -hbooleanPrint the command list.

#Run search refresh

bash
puni search refresh --base-url https://puni.design --json

Back to the command line index for every group.

Was this useful?