LangGraph vector store implementation for Azure Data Explorer (Kusto) - PRE-ALPHA VERSION
Project description
langgraph-kusto
This repository provides Kusto-backed storage and checkpointing for LangGraph, including optional semantic search using Kusto's ai_embeddings plugin.
Kusto store search example
The KustoStore supports two search modes:
- Vector search when an embedding function is configured
- Text search fallback when no embedding function is provided
Below is an example of configuring a KustoStore with the KustoOpenAIEmbeddingFn and running a search.
from langgraph_kusto.common.kusto_client import KustoClient
from langgraph_kusto.store.store import KustoStore, KustoStoreConfig
from langgraph_kusto.store.embeddings import KustoOpenAIEmbeddingFn
# Create Kusto client from environment
client = KustoClient.from_env()
# Configure embedding function backed by Kusto's ai_embeddings plugin
embedding_fn = KustoOpenAIEmbeddingFn(
client=client,
model_uri="https://myaccount.openai.azure.com/openai/deployments/text-embedding-3-small/embeddings?api-version=2024-06-01;impersonate", # or your configured embedding model
)
# Configure the store
store_config = KustoStoreConfig(
client=client,
embedding_function=embedding_fn,
)
store = KustoStore(config=store_config)
# Run a semantic search in a given namespace
results = store.search(namespace="my-namespace", query="find relevant items", k=5)
for item in results:
print(item["key"], item["score"], item["chunk_string"])
If you omit the embedding_function when creating KustoStoreConfig, store.search will automatically fall back to a simple text search over the stored values for the requested namespace.
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 langgraph_kusto-0.0.1.tar.gz.
File metadata
- Download URL: langgraph_kusto-0.0.1.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ce694cea4ad1f9dd26b3ed14b5e0327adfc4331c2027ca2879d6059e5276c23
|
|
| MD5 |
98701ca3b93f9390762ad0ba30ee019b
|
|
| BLAKE2b-256 |
8748b6121d0c4125480889979b9755701b2650e3c4a323f9d5a84453e340fba6
|
Provenance
The following attestation bundles were made for langgraph_kusto-0.0.1.tar.gz:
Publisher:
publish.yml on danield137/langgraph-kusto
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langgraph_kusto-0.0.1.tar.gz -
Subject digest:
8ce694cea4ad1f9dd26b3ed14b5e0327adfc4331c2027ca2879d6059e5276c23 - Sigstore transparency entry: 724416122
- Sigstore integration time:
-
Permalink:
danield137/langgraph-kusto@5efe31bdad32f24cbf75bb6366dec99c62b59a18 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/danield137
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5efe31bdad32f24cbf75bb6366dec99c62b59a18 -
Trigger Event:
release
-
Statement type:
File details
Details for the file langgraph_kusto-0.0.1-py3-none-any.whl.
File metadata
- Download URL: langgraph_kusto-0.0.1-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f05ceb22abafaf05cb7b7254280511aac7c2805f76ed7666b450fa0e0cb0683b
|
|
| MD5 |
a39506960fed76b3c3ca1e592a243b23
|
|
| BLAKE2b-256 |
5e60fab096b1cbea06cdce30fda1d739a76d26cf5e9317cec700d07428622272
|
Provenance
The following attestation bundles were made for langgraph_kusto-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on danield137/langgraph-kusto
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langgraph_kusto-0.0.1-py3-none-any.whl -
Subject digest:
f05ceb22abafaf05cb7b7254280511aac7c2805f76ed7666b450fa0e0cb0683b - Sigstore transparency entry: 724416123
- Sigstore integration time:
-
Permalink:
danield137/langgraph-kusto@5efe31bdad32f24cbf75bb6366dec99c62b59a18 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/danield137
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5efe31bdad32f24cbf75bb6366dec99c62b59a18 -
Trigger Event:
release
-
Statement type: