?
Search a data source
Searches a corpus from the terminal to sanity-check what it returns.
admin.dataSources.search({ slug, query, mode?, filter? })
Runs a query against a corpus from the command line, using the same retrieval the app gets. Use it to sanity-check a corpus you just built, or to tune it before wiring it in. Pass --candidate to search a rebuild in progress and compare it against what is live.
Parameters
--source
string
Corpus slug.
--mode
enum
hybrid (default), semantic, or lexical.
hybridsemanticlexical
--filter
k=v | json
Metadata equality, or the full filter grammar as JSON.
--candidate
flag
Search the candidate version instead of the live one.
CLI
remy-admin datasources search --source policies --mode lexical "ERR-7741X"