search
Performs embeddings-based searches across search configured datasets. Note: Search requires the ai
feature to be installed.
Usageโ
spice search [query] [flags]
query
- a search query
Flagsโ
--cloud
Use a Spice Cloud instance for search. Requires--api-key
.--endpoint <endpoint>
Specifies the remote Spice instance HTTP endpoint (e.g.,http://localhost:8090
).--limit
Limit number of search results.--model
Model to use for search.--http-endpoint <endpoint>
(Deprecated) HTTP endpoint for search (default:http://localhost:8090
).
Examplesโ
>>> spice search --limit 2
Remote and Cloud Examplesโ
# Search with Spice Cloud
spice search --cloud --api-key <your-api-key>
# Search with a remote spiced instance
spice search --endpoint http://my-remote-host:8090
search> artificial intelligence
Rank 1, Score: 20.6, Datasets [pdf]
Undergraduate Texts in Mathematics Editors: F. W. Gehring P. R.
Halmos ยท
Advisory Board: C. DePrima
I. Herstein J. Kiefer W. LeVeque Kai Lai Chung
Elementary Probability
Theory with Stochastic Processes Springer Science+Business Media, LLC
...
Rank 2, Score: 17.8, Datasets [pdf]
Forecasting at Scale Sean J. Taylor y Facebook, Menlo Park, California, United States [email protected] and Benjamin Letham y Facebook, Menlo Park, California, United States [email protected] Abstract Forecasting is a common data science...
Additional Exampleโ
>>> spice search --model gpt-3 --limit 1
search> machine learning
Rank 1, Score: 25.4, Datasets [pdf]
Machine Learning Yearning by Andrew Ng
Machine Learning Yearning is a technical book by Andrew Ng that provides practical advice on how to structure machine learning projects.
...