Query Your Knowledge Base
Ask questions, run batch queries, and export results
Before you begin
- You have an API key (
pai_test_*orpai_live_*) - You have a project with at least one document in
readystatus (Upload Documents) - Feature
api.queryis enabled for your organization (plusapi.batchesfor batch operations)
Ask a single question
Send a question and get an answer grounded in your project’s documents:
Options
Query the Open Library
With search_scope: open_library, the Agent answers from the Open Library, a corpus of Hong Kong government engineering documents (technical circulars, standards, practice notes, publications). Omit project_id; sources in the response carry a url field pointing at the public document. This scope requires the api.open_library feature on your organization. Contact support to enable it.
Run a batch of questions
Submit multiple questions for async processing — useful for spreadsheet workflows or bulk analysis.
Batch options
List batches
What’s next
- Run a Compliance Check — verify requirements against documents
- View Your Organization — check your org details and settings