Skip to content

Search

Primary search endpoint that provides advanced search capabilities across all document types stored in Smart Buckets. Supports recursive object search within objects, enabling nested content search like embedded images, text content, and personally identifiable information (PII).

The system supports complex queries like:

  • ‘Show me documents containing credit card numbers or social security numbers’
  • ‘Find images of landscapes taken during sunset’
  • ‘Get documents mentioning revenue forecasts from Q4 2023’
  • ‘Find me all PDF documents that contain pictures of a cat’
  • ‘Find me all audio files that contain infomration about the weather in SF in 2024’

Key capabilities:

  • Natural language query understanding
  • Content-based search across text, images, and audio
  • Automatic PII detection
  • Multi-modal search (text, images, audio)
import Raindrop from '@liquidmetal-ai/lm-raindrop';
const client = new Raindrop({
apiKey: process.env['RAINDROP_API_KEY'], // This is the default and can be omitted
});
async function main() {
const searchResponse = await client.search.perform({ input: 'input', request_id: 'request_id' });
console.log(searchResponse.pagination);
}
main();

Get Paginated Search Results

Retrieve additional pages from a previous search. This endpoint enables navigation through large result sets while maintaining search context and result relevance. Retrieving paginated results requires a valid request_id from a previously completed search.

import Raindrop from '@liquidmetal-ai/lm-raindrop';
const client = new Raindrop({
apiKey: process.env['RAINDROP_API_KEY'], // This is the default and can be omitted
});
async function main() {
const searchResponse = await client.search.getResults({ request_id: 'request_id' });
console.log(searchResponse.pagination);
}
main();