@gensx/storage
Version:
Cloud storage, blobs, sqlite, and vector database providers/hooks for GenSX.
25 lines (20 loc) • 735 B
JavaScript
;
/**
* 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
*/
var searchClient = require('./searchClient.cjs');
/**
* 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.SearchClient(options);
const namespace = await client.getNamespace(name);
return namespace;
}
exports.useSearch = useSearch;
//# sourceMappingURL=useSearch.cjs.map