UNPKG

@gensx/storage

Version:

Cloud storage, blobs, sqlite, and vector database providers/hooks for GenSX.

23 lines (19 loc) 697 B
/** * Check out the docs at https://www.gensx.com/docs * Find us on Github https://github.com/gensx-inc/gensx * Find us on Discord https://discord.gg/F5BSU8Kc */ import { SearchClient } from './searchClient.js'; /** * Hook to access a search namespace * @param name The name of the namespace to access * @param options Optional configuration properties for the search namespace * @returns A promise that resolves to a namespace object for the given name */ async function useSearch(name, options = {}) { const client = new SearchClient(options); const namespace = await client.getNamespace(name); return namespace; } export { useSearch }; //# sourceMappingURL=useSearch.js.map