Chunk Search
Chunk Search provides search capabilities that serve as a complete drop-in replacement for traditional RAG pipelines. This system enables AI agents to leverage private data stored in Smart Buckets with zero additional configuration.
Each input query is processed by our AI agent to determine the best way to search the data. The system will then return the most relevant results from the data ranked by relevance on the input query.
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 chunkSearch = await client.chunkSearch.create({ input: 'input', request_id: 'request_id' });
console.log(chunkSearch.results);}
main();
import osfrom lm_raindrop import Raindrop
client = Raindrop( api_key=os.environ.get("RAINDROP_API_KEY"), # This is the default and can be omitted)chunk_search = client.chunk_search.create( input="input", request_id="request_id",)print(chunk_search.results)
package main
import ( "context" "fmt"
"github.com/LiquidMetal-AI/raindrop-go-sdk" "github.com/LiquidMetal-AI/raindrop-go-sdk/option")
func main() { client := raindrop.NewClient( option.WithAPIKey("My API Key"), // defaults to os.LookupEnv("RAINDROP_API_KEY") ) chunkSearch, err := client.ChunkSearch.New(context.TODO(), raindrop.ChunkSearchNewParams{ Input: raindrop.F("input"), RequestID: raindrop.F("request_id"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", chunkSearch.Results)}
package com.raindrop.api.example;
import com.raindrop.api.client.RaindropClient;import com.raindrop.api.client.okhttp.RaindropOkHttpClient;import com.raindrop.api.models.chunksearch.ChunkSearchCreateParams;import com.raindrop.api.models.chunksearch.ChunkSearchCreateResponse;
public final class Main { private Main() {}
public static void main(String[] args) { // Configures using the `RAINDROP_API_KEY` environment variable RaindropClient client = RaindropOkHttpClient.fromEnv();
ChunkSearchCreateParams params = ChunkSearchCreateParams.builder() .input("input") .requestId("request_id") .build(); ChunkSearchCreateResponse chunkSearch = client.chunkSearch().create(params); }}
# Run a RAG search querynpx raindrop query chunk-search "What is LiquidMetal?"