Knowing by reasoning, not vectors.
Deep and reliable. Vectorless plays nicely with your documents. Ask questions in plain language; get answers by reasoning with Vectorless.
Install using pip install -U vectorless. For more details, see the Installation section in the documentation.
import asyncio
from vectorless import Engine
async def main():
engine = Engine(api_key="sk-...", model="gpt-4o", endpoint="https://api.openai.com/v1")
# Compile a document
result = await engine.compile(path="./report.pdf")
doc_id = result.doc_id
# Ask a question
response = await engine.ask("What is the total revenue?", doc_ids=[doc_id])
print(response.single().content)
asyncio.run(main())See documentation for more details.
Contributions welcome! See Contributing for setup and guidelines.
Apache License 2.0