Inoffficial for Deepset Cloud SDK
npm install deepset-cloud-sdkThis is an inofficial deepset cloud client provided by Fakir Technology Consultants GmbH.
If you have any questions or feedback, feel free to open an issue or contact us at info@fakir.tech
File Upload Handling
* Throttling of requests
* Retry on failed uploads
* Data Deduplications (using unique meta fields)
``javascript
import { initialize } from 'deepet-cloud-sdk';
const deepsetCloudClient = initialize({apiKey: '...' });
await deepsetCloudClient.storeFile({
fileContent: "I am Albet Einestein",
fileName: "einstein.txt"
})
const { results } = await deepsetCloudClient.search( {
pipeline:"germanBert",
query:"Who ist Albert Einstein"
})
for (let answer of results[0]) {
console.log(answer.text); //
}
``