Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langgraph_kusto-0.0.1.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langgraph_kusto-0.0.1-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

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

Hashes for langgraph_kusto-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8ce694cea4ad1f9dd26b3ed14b5e0327adfc4331c2027ca2879d6059e5276c23
MD5 98701ca3b93f9390762ad0ba30ee019b
BLAKE2b-256 8748b6121d0c4125480889979b9755701b2650e3c4a323f9d5a84453e340fba6

See more details on using hashes here.

Provenance

The following attestation bundles were made for langgraph_kusto-0.0.1.tar.gz:

Publisher: publish.yml on danield137/langgraph-kusto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langgraph_kusto-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for langgraph_kusto-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f05ceb22abafaf05cb7b7254280511aac7c2805f76ed7666b450fa0e0cb0683b
MD5 a39506960fed76b3c3ca1e592a243b23
BLAKE2b-256 5e60fab096b1cbea06cdce30fda1d739a76d26cf5e9317cec700d07428622272

See more details on using hashes here.

Provenance

The following attestation bundles were made for langgraph_kusto-0.0.1-py3-none-any.whl:

Publisher: publish.yml on danield137/langgraph-kusto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page