0.9.1 • Published 12 months ago

deepset-cloud-sdk v0.9.1

Weekly downloads
-
License
-
Repository
github
Last release
12 months ago

Deepset Cloud Client SDK

This 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

Features

File Upload Handling

  • Throttling of requests
  • Retry on failed uploads
  • Data Deduplications (using unique meta fields)

Quick Examples

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); //
}