Vectorless
SDKs

Python

The vectorless client for Python — sync and async.

Updated 2026

Placeholder guide — full reference lands with the SDK release. Snippets show the intended API shape.

Install

pip install vectorless

Initialize

import os
from vectorless import Vectorless

vl = Vectorless(
    api_url=os.environ["VECTORLESS_API_URL"],
    api_key=os.environ["VECTORLESS_API_KEY"],
)

Ingest and ask

doc = vl.documents.ingest(source="./report.pdf")

result = vl.ask(
    document=doc.id,
    question="Summarize the risk factors.",
    strategy="treewalk",
)

print(result.answer)
for c in result.citations:
    print(" › ".join(c.path), c.snippet)

Async client

import asyncio
from vectorless import AsyncVectorless

async def main():
    vl = AsyncVectorless()
    doc = await vl.documents.ingest(source="./report.pdf")
    result = await vl.ask(
        document=doc.id,
        question="Walk me through the methodology.",
        strategy="treewalk",
    )
    print(result.answer)

asyncio.run(main())

On this page