You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Full-text search using BM25 across a table column.
170
-
- Requires a BM25 index on the target column (see `indexes create`).
171
-
- Results are ordered by relevance score (descending).
172
-
-`--select` specifies which columns to return (comma-separated, defaults to all). The `score` column is automatically appended when `--select` is used.
180
+
- Without `--model` and with query text: BM25 full-text search. Requires a BM25 index on the target column.
181
+
- With `--model`: generates an embedding via OpenAI and performs vector search using `l2_distance`. Requires `OPENAI_API_KEY` env var.
182
+
- Without query text and with piped stdin: reads a vector (raw JSON array or OpenAI embedding response) and performs vector search.
183
+
- BM25 results are ordered by relevance score (descending). Vector results are ordered by distance (ascending).
184
+
-`--select` specifies which columns to return (comma-separated, defaults to all).
- Full-text search using BM25 across a table column.
201
-
- Requires a BM25 index on the target column (see `indexes create`).
202
-
- Results are ordered by relevance score (descending).
203
-
-`--select` specifies which columns to return (comma-separated, defaults to all). The `score` column is automatically appended when `--select` is used.
212
+
- Without `--model` and with query text: BM25 full-text search. Requires a BM25 index on the target column.
213
+
- With `--model`: generates an embedding via OpenAI and performs vector search using `l2_distance`. Requires `OPENAI_API_KEY` env var. Supported models: `text-embedding-3-small`, `text-embedding-3-large`.
214
+
- Without query text and with piped stdin: reads a vector (raw JSON array or OpenAI embedding response) and performs vector search.
215
+
- BM25 results are ordered by relevance score (descending). Vector results are ordered by distance (ascending).
216
+
-`--select` specifies which columns to return (comma-separated, defaults to all).
204
217
- Default limit is 10.
218
+
-**For BM25 search, create a BM25 index on the target column first. For vector search, create a vector index.**
Copy file name to clipboardExpand all lines: src/main.rs
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ mod workspace;
19
19
20
20
use anstyle::AnsiColor;
21
21
use clap::{Parser, builder::Styles};
22
-
use command::{AuthCommands,Commands,ConnectionsCommands,ConnectionsCreateCommands,DatasetsCommands,IndexesCommands,JobsCommands,QueriesCommands,ResultsCommands,SkillCommands,TablesCommands,WorkspaceCommands};
22
+
use command::{AuthCommands,Commands,ConnectionsCommands,ConnectionsCreateCommands,DatasetsCommands,IndexesCommands,JobsCommands,QueriesCommands,QueryCommands,ResultsCommands,SkillCommands,TablesCommands,WorkspaceCommands};
23
23
24
24
#[derive(Parser)]
25
25
#[command(name = "hotdata", version, about = concat!("Hotdata CLI - Command line interface for Hotdata (v", env!("CARGO_PKG_VERSION"),")"), long_about = None, disable_version_flag = true)]
0 commit comments