@frontal-labs/search
v0.0.2
Published
Frontal Search SDK — unified search across vectors, graph, and datasets with hybrid mode
Readme
@frontal-labs/search
Unified search SDK composing vector, semantic, and structured search with hybrid mode.
Installation
bun add @frontal-labs/search @frontal-labs/coreUsage
import { FrontalClient } from "@frontal-labs/core";
import { createSearchClient } from "@frontal-labs/search";
const client = new FrontalClient({
apiKey: process.env.FRONTAL_API_KEY!,
baseUrl: process.env.FRONTAL_API_URL ?? "https://api.frontal.dev/v1",
});
const search = createSearchClient(client);
const results = await search.search({
query: "red shoes",
modes: ["vector", "semantic"],
top_k: 10,
});
const hybrid = await search.hybridSearch({
query: "customers in us-east",
entity_types: ["customer"],
top_k: 5,
});Configuration
FRONTAL_API_KEY— Your Frontal API keyFRONTAL_SEARCH_API_URL— Custom search API base URL
