mirror of
https://github.com/lancedb/lancedb.git
synced 2026-05-23 15:00:39 +00:00
@@ -868,7 +868,7 @@ impl ConnectBuilder {
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `uri` - URI where the database is located, can be a local directory, supported remote cloud storage,
|
||||
/// or a LanceDB Cloud database. See [ConnectOptions::uri] for a list of accepted formats
|
||||
/// or a LanceDB Cloud database. See [ConnectOptions::uri] for a list of accepted formats
|
||||
pub fn connect(uri: &str) -> ConnectBuilder {
|
||||
ConnectBuilder::new(uri)
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ where
|
||||
/// ----------
|
||||
/// - reader: RecordBatchReader
|
||||
/// - strict: if set true, only `fixed_size_list<float>` is considered as vector column. If set to false,
|
||||
/// a `list<float>` column with same length is also considered as vector column.
|
||||
/// a `list<float>` column with same length is also considered as vector column.
|
||||
pub fn infer_vector_columns(
|
||||
reader: impl RecordBatchReader + Send,
|
||||
strict: bool,
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
//! are not yet ready to be released.
|
||||
//!
|
||||
//! - `remote` - Enable remote client to connect to LanceDB cloud. This is not yet fully implemented
|
||||
//! and should not be enabled.
|
||||
//! and should not be enabled.
|
||||
//!
|
||||
//! ### Quick Start
|
||||
//!
|
||||
|
||||
@@ -29,8 +29,8 @@ impl FromStr for NormalizeMethod {
|
||||
|
||||
fn from_str(s: &str) -> Result<Self> {
|
||||
match s.to_lowercase().as_str() {
|
||||
"score" => Ok(NormalizeMethod::Score),
|
||||
"rank" => Ok(NormalizeMethod::Rank),
|
||||
"score" => Ok(Self::Score),
|
||||
"rank" => Ok(Self::Rank),
|
||||
_ => Err(Error::InvalidInput {
|
||||
message: format!("invalid normalize method: {}", s),
|
||||
}),
|
||||
@@ -41,8 +41,8 @@ impl FromStr for NormalizeMethod {
|
||||
impl std::fmt::Display for NormalizeMethod {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
NormalizeMethod::Score => write!(f, "score"),
|
||||
NormalizeMethod::Rank => write!(f, "rank"),
|
||||
Self::Score => write!(f, "score"),
|
||||
Self::Rank => write!(f, "rank"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -794,8 +794,8 @@ impl Table {
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `on` One or more columns to join on. This is how records from the
|
||||
/// source table and target table are matched. Typically this is some
|
||||
/// kind of key or id column.
|
||||
/// source table and target table are matched. Typically this is some
|
||||
/// kind of key or id column.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user