Skip to main content
The openviking backend manages knowledge files and text as OpenViking resources. OpenViking parses and indexes the resources, so VeADK does not need an embedding model for this backend. Each KnowledgeBase.index maps to viking://resources/{index}/ by default.

Prerequisites

Prepare a reachable OpenViking service and an API key. VeADK 1.0.3 includes openviking-sdk>=0.1.3 in its base dependencies.

Example

By default, imports wait for OpenViking to finish processing, and search results are hydrated by reading the matching resource body or overview. Set DATABASE_OPENVIKING_HYDRATE_RESULTS=false if the search result abstracts are sufficient.

Backend parameters

Pass parameters through KnowledgeBase(backend="openviking", backend_config={...}). The parameters also support the DATABASE_OPENVIKING_* environment variables below. The URL, API key, account, user, actor peer ID, and target URI also accept matching OPENVIKING_* aliases.

Import parameters

add_from_directory(directory, **kwargs) accepts these per-call overrides: add_from_files(files, **kwargs) accepts target_uri, wait, timeout, strict, directly_upload_media, and telemetry. It also accepts the string parameters reason and instruction to describe the import reason and processing instruction.

Search parameters

search(query, top_k, **kwargs) accepts these per-call overrides:
Last modified on September 19, 2026