VRINClient is the single entry point for queries, knowledge management, file uploads, conversations, auth, and health checks.
Constructor
Parameters
Your Vrin API key. Keys starting with
vrin_ route to Vrin shared infrastructure.
Keys starting with vrin_ent_ route to your enterprise AWS account — use
VRINEnterpriseClient for those.Default timeout in seconds for all HTTP requests. Individual methods may override this.
Number of retries on server errors (5xx) and connection failures. Client errors
(401, 429) are never retried. Uses exponential backoff (2^attempt seconds).
Context manager
VRINClient implements the context manager protocol. The underlying HTTP session is closed on exit.
Properties
The active conversation session ID, or
None if no conversation is in progress.List of ended conversation session IDs from this client instance.
Auto-detection
If you are not sure whether a key is standard or enterprise, use the factory helper:Methods overview
| Method | Description |
|---|---|
query() | Query the knowledge base |
query_facts() | Fast fact retrieval without AI summary |
insert() | Insert text content |
upload_file() | Upload a file |
upload_bytes() | Upload raw bytes |
start_conversation() | Start a conversation session |
continue_conversation() | Query with conversation context |
specialize() | Set AI persona |
login() | Authenticate (static) |
register() | Create account (static) |
health_check() | Check service health |
Health check
Retry behavior
The client automatically retries on:- HTTP 5xx responses
requests.ConnectionErrorrequests.Timeout
- HTTP 401 (
AuthenticationError) - HTTP 429 (
RateLimitError) ValidationError