Skip to main content

No project description provided

Project description

pharia-data-sdk

Formerly the intelligence_layer/connectors/data, intelligence_layer/connectors/document_index and intelligence_layer/connectors/retrievers modules.

Overview

This module provides connectors for interacting with the Pharia Data Platform and Document Index, you users to semantically search, access and manage data, documents, and their associated metadata.

Installation

pip install pharia-data-sdk

Usage

Data Platform Connector

from pharia_data_sdk.connectors.data import DataClient

client = DataClient(token="your_token", base_data_platform_url="<base_data_platform_url>")

client.list_repositories()

Document Index Connector

from pharia_data_sdk.connectors.document_index import DocumentIndexClient

client = DocumentIndexClient(token="your_token", base_document_index_url="<base_document_index_url>")

client.list_namespaces()

Retrievers

from pharia_data_sdk.connectors.retrievers.document_index_retriever import DocumentIndexRetriever
from pharia_data_sdk.connectors.document_index import DocumentIndexClient

retriever = DocumentIndexRetriever(
    document_index=DocumentIndexClient(token="your_token", base_document_index_url="<base_document_index_url>"),
    index_name="<index_name>",
    namespace="<namespace>",
    collection="<collection>",
)

retriever.get_relevant_documents_with_scores("What is the capital of France?")

Contributing

We welcome contributions! Please see our Contributing Guide for details on how to set up the development environment and submit changes.

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

pharia_data_sdk-0.1.1.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

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

pharia_data_sdk-0.1.1-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file pharia_data_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: pharia_data_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.13

File hashes

Hashes for pharia_data_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 14baab5cd3fb711038e2d24f6be6c613ddca814c56025ea14e3313839487142e
MD5 eec782cd475f8605100debfab1c94793
BLAKE2b-256 4fa47cac7703b7afd05025f046a0f438bb92a4cbf8bb6b42d10c71bf3e6d40f5

See more details on using hashes here.

File details

Details for the file pharia_data_sdk-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pharia_data_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 509c6f28cdff80606a8cfb045b8b7ae2166323f5ef7b3fe048fd123a6c378df7
MD5 2c3051e5f0be519e56aa203b07d3e1ce
BLAKE2b-256 619c38fea0ddd53c0444bebffda5fde6d5a4e30d3d8b2db9efaa85662ef964f5

See more details on using hashes here.

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