OpenViking integrations for LangChain and LangGraph
Project description
langchain-openviking
langchain-openviking is the official OpenViking integration package for
LangChain and LangGraph applications. It keeps framework-specific adapters
separate from the OpenViking server and communicates with remote OpenViking
instances through the lightweight openviking-sdk package.
Installation
For LangChain retrievers, tools, message history, and context wrappers:
pip install langchain-openviking
For the LangGraph store and middleware:
pip install "langchain-openviking[langgraph]"
Quick start
from langchain_openviking import OpenVikingRetriever
from openviking_sdk import SyncHTTPClient
client = SyncHTTPClient(
url="http://127.0.0.1:1933",
api_key="your-user-api-key",
)
client.initialize()
retriever = OpenVikingRetriever(
client=client,
target_uri="viking://user/memories",
)
try:
documents = retriever.invoke("What deployment preferences should I remember?")
finally:
client.close()
The package also provides OpenVikingSessionRecorder,
OpenVikingContextMiddleware, OpenVikingStore,
OpenVikingChatMessageHistory, and create_openviking_tools.
Client ownership
- A client supplied through
client=orasync_client=remains caller-owned. - Clients created from
url=are managed by the adapter and can be closed withclose()oraclose()as documented by each adapter. - Embedded
path=mode requires the fullopenvikingpackage. It is kept for compatibility, while the standalone package's default boundary is HTTP.
The previous openviking.integrations.langchain import path remains available
from the full openviking distribution as a compatibility shim.
See the OpenViking documentation and the repository's
examples/langchain-langgraph directory for complete examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_openviking-0.1.0.tar.gz.
File metadata
- Download URL: langchain_openviking-0.1.0.tar.gz
- Upload date:
- Size: 48.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc4ee47a122527881eae1fbbe6f9ca857cc0269cd60f08c8d3fd3fff94996e9e
|
|
| MD5 |
f1a6a62775ae3336a618fc0701d57d7f
|
|
| BLAKE2b-256 |
7fc0418dba42bddb5093d20d5e36c3e8d9ceff0b27ce92a6bc2f16fb33535fac
|
Provenance
The following attestation bundles were made for langchain_openviking-0.1.0.tar.gz:
Publisher:
python-langchain-release.yml on volcengine/OpenViking
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_openviking-0.1.0.tar.gz -
Subject digest:
dc4ee47a122527881eae1fbbe6f9ca857cc0269cd60f08c8d3fd3fff94996e9e - Sigstore transparency entry: 2334384924
- Sigstore integration time:
-
Permalink:
volcengine/OpenViking@3f3554256bb6cbf61f4502a3c32df071182f2c4a -
Branch / Tag:
refs/tags/langchain-openviking@0.1.0 - Owner: https://github.com/volcengine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-langchain-release.yml@3f3554256bb6cbf61f4502a3c32df071182f2c4a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file langchain_openviking-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_openviking-0.1.0-py3-none-any.whl
- Upload date:
- Size: 55.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea32f08fa4bed81743e0d11e5f2f52e940c1464de74408d45bd574c081a4dffb
|
|
| MD5 |
b86f65e533dbe5a01af997b1faa41a23
|
|
| BLAKE2b-256 |
042287f547ab4a84fa4094462e1e1cfdbadf28a539b5cd0efdb147b754d3b88a
|
Provenance
The following attestation bundles were made for langchain_openviking-0.1.0-py3-none-any.whl:
Publisher:
python-langchain-release.yml on volcengine/OpenViking
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_openviking-0.1.0-py3-none-any.whl -
Subject digest:
ea32f08fa4bed81743e0d11e5f2f52e940c1464de74408d45bd574c081a4dffb - Sigstore transparency entry: 2334384928
- Sigstore integration time:
-
Permalink:
volcengine/OpenViking@3f3554256bb6cbf61f4502a3c32df071182f2c4a -
Branch / Tag:
refs/tags/langchain-openviking@0.1.0 - Owner: https://github.com/volcengine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-langchain-release.yml@3f3554256bb6cbf61f4502a3c32df071182f2c4a -
Trigger Event:
workflow_dispatch
-
Statement type: