Learn R Programming

VectrixDB (version 1.1.2)

quick_search: Quick search - Index texts and search immediately

Description

Quick search - Index texts and search immediately

Usage

quick_search(texts, query, limit = 5)

Value

Results object

Arguments

texts

Character vector of texts to index

query

Search query

limit

Number of results

Examples

Run this code
if (FALSE) {
results <- quick_search(
  texts = c("Python is great", "Java is verbose", "Rust is fast"),
  query = "programming language"
)
print(results$top()$text)
}

Run the code above in your browser using DataLab