with LLMWhisperer and Docker Engine?
Convert your PDF/scanned documents to text format which can be used by LLMs. See the documentation
Get the status of the whisper process. This can be used to check the status of the conversion process when the conversion is done in async mode. See the documentation
Generate highlight locations for a search term in the document. See the documentation
Retrieve the extracted text executed through the whisper API. This can be used to retrieve the text of the conversion process when the conversion is done in async mode. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
llmwhisperer: {
type: "app",
app: "llmwhisperer",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://llmwhisperer-api.unstract.com/v1/get-usage-info`,
headers: {
"unstract-key": `${this.llmwhisperer.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
docker_engine: {
type: "app",
app: "docker_engine",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.docker_engine.$auth.url}/v1.45/containers/json`,
headers: {
"X-Registry-Auth": `${this.docker_engine.$auth.registry_authorization}`,
},
})
},
})