Push Documents from a URL

The push() method allows users to add knowledge by providing document URLs.

Example Usage:

payload = {
    "document_type": "pdf",
    "document_source": "url",
    "document_data": [
        "https://drive.google.com/uc?export=download&id=1rziS99JWvebokl9a7m9xpD8NnAxBi8hH",
        "https://pdfobject.com/pdf/sample.pdf"
    ]
}
data = knowledgelake.push(payload)
print("THIS IS DATA", data)

Example Response

[
    {
        "message": "Document processed and vector pushed successfully.",
        "document": "https://drive.google.com/uc?export=download&id=1rziS99JWvebokl9a7m9xpD8NnAxBi8hH"
    },
    {
        "message": "Document processed and vector pushed successfully.",
        "document": "https://pdfobject.com/pdf/sample.pdf"
    }
]

Last updated