The openviking backend delegates resource parsing, indexing, and retrieval to OpenViking, so VeADK does not need a local embedding model. Each index maps to viking://resources/<index>/ by default. This backend is available in VeADK 1.0.3 and later.
Dependencies
The OpenViking SDK is part of VeADK’s base dependencies:
pip install veadk-python
Prepare a reachable OpenViking service and a service-owner API key. In production, inject credentials through environment variables or a secret manager:
Imported documents are sent to the configured OpenViking service. Before processing personal, business, or other sensitive data, verify that the service location, access controls, and retention policy meet your requirements.
Knowledge-base name used to build the default resource URI. It cannot be empty.
url
str | None
Environment
OpenViking service URL.
api_key
str | None
Environment
OpenViking API key.
account
str | None
Environment
OpenViking account.
user
str | None
Environment
OpenViking user.
actor_peer_id
str | None
Environment
Identity used for resource operations.
target_uri
str | None
viking://resources/<index>/
Resource URI used for ingestion and retrieval.
wait
bool
true
Whether ingestion waits for processing to finish.
import_timeout
float | None
300
Resource-ingestion timeout in seconds.
hydrate_results
bool
true
Whether to read full content for matched resources.
read_limit
int
200
Maximum amount of content read from a matched resource.
score_threshold
float | None
None
Minimum relevance score for search results.
use_context_search
bool
false
Whether to use OpenViking context search.
Environment variables
The parameters map to DATABASE_OPENVIKING_URL, DATABASE_OPENVIKING_API_KEY, DATABASE_OPENVIKING_ACCOUNT, DATABASE_OPENVIKING_USER, DATABASE_OPENVIKING_ACTOR_PEER_ID, DATABASE_OPENVIKING_TARGET_URI, DATABASE_OPENVIKING_WAIT, DATABASE_OPENVIKING_IMPORT_TIMEOUT, DATABASE_OPENVIKING_HYDRATE_RESULTS, DATABASE_OPENVIKING_READ_LIMIT, DATABASE_OPENVIKING_SCORE_THRESHOLD, and DATABASE_OPENVIKING_USE_CONTEXT_SEARCH. The URL, API key, account, user, actor peer ID, and target URI also accept the corresponding OPENVIKING_* variables.
Per-operation overrides
Constructor parameters define the defaults. These keyword arguments can override them for one ingestion or search operation.
Method
Parameters
Default
Description
add_from_directory
target_uri, wait, timeout
Instance configuration
Override the destination, wait behavior, and timeout.