Skip to main content

azure-documentdb-haystack

PyPI - Version PyPI - Python Version

Haystack document store and retrievers for Azure DocumentDB.

Installation

pip install azure-documentdb-haystack

Authentication

Microsoft Entra ID is the default and recommended authentication method. DefaultAzureCredential supports local Azure CLI credentials, workload identity, and managed identity without changing application code. Assign the identity an appropriate Azure DocumentDB data-plane role, then set the cluster name:

AZURE_DOCUMENTDB_CLUSTER_NAME=my-cluster

For local development and integration testing only, a connection string can be supplied through AZURE_DOCUMENTDB_CONNECTION_STRING. The integration emits a warning whenever this fallback is used.

Usage

from haystack_integrations.document_stores.azure_documentdb import AzureDocumentDBDocumentStore

store = AzureDocumentDBDocumentStore(
    database_name="haystack",
    collection_name="documents",
)

# Create once. The collection must exist before initializing the store.
store.create_vector_index(dimensions=1536, kind="vector-hnsw", similarity="COS", m=16, efConstruction=64)

Use AzureDocumentDBEmbeddingRetriever for cosmosSearch vector queries. AzureDocumentDBFullTextRetriever supports Azure DocumentDB BM25 full-text search, which is currently a gated preview and must be enabled on the cluster.

Contributing

Refer to the general Contribution Guidelines.

Download files

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

Source Distribution

azure_documentdb_haystack-1.0.0.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

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

azure_documentdb_haystack-1.0.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file azure_documentdb_haystack-1.0.0.tar.gz.

File metadata

File hashes

Hashes for azure_documentdb_haystack-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9ace28f4fcd6c92c3fc864ae61b25cf740de64d25a53d38512154b4fcd955f52
MD5 c97989ab19e478c207d4b76e914004b9
BLAKE2b-256 04a6fde9cebc002af261b3cc386957d3d2ac9af4b78ae6110f1506b18c2127bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for azure_documentdb_haystack-1.0.0.tar.gz:

Publisher: CI_pypi_release.yml on deepset-ai/haystack-core-integrations

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

File details

Details for the file azure_documentdb_haystack-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_documentdb_haystack-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1aa1dd6ac7041614d4f3b1a238b871c5b6e4ef0302fa6f3231b89167ba5cfa2b
MD5 60f6d456016a21eb398568cf0844665c
BLAKE2b-256 2596a4c0fefa5aee02c7f5563e9e79c8dcac6a4643b514e11540a18eb8e3803c

See more details on using hashes here.

Provenance

The following attestation bundles were made for azure_documentdb_haystack-1.0.0-py3-none-any.whl:

Publisher: CI_pypi_release.yml on deepset-ai/haystack-core-integrations

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page