Skip to main content

llama-index readers hive integration

Project description

Hive Loader

[!NOTE] > This package has been deprecated starting from v0.3.1

pip install llama-index-readers-hive

The Hive Loader returns a set of texts corresponding to documents from Hive based on the customized query. The user initializes the loader with Hive connection args and then using query to fetch data from Hive.

Usage

Here's an example usage of the hiveReader to load 100 documents.

from llama_index.readers.hive import HiveReader

reader = HiveReader(
    host="localhost",
    port=10000,
    database="PERSON_DB",
    username="hiveuser_test",
    auth="NOSASL",
)

query = "SELECT * FROM p1 LIMIT 100"
documents = reader.load_data(query=query)
print(documents)
# test with params
query = "SELECT * FROM p1 WHERE id = %s"
params = ("1",)
documents1 = reader.load_data(query=query, params=params)

This loader is designed to be used as a way to load data into LlamaIndex.

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

llama_index_readers_hive-0.3.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

llama_index_readers_hive-0.3.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_hive-0.3.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_hive-0.3.1.tar.gz
Algorithm Hash digest
SHA256 428eff8f723c8794a1cdcb5aca2b0a6ad68d459a100676dd514031cb6e6fb3f9
MD5 ff94b83ffa8b6b04a7dec80f35177c49
BLAKE2b-256 2a91f17f7c9a17975781dee5154b7929b91cc361326bba2057bff8886a1be107

See more details on using hashes here.

File details

Details for the file llama_index_readers_hive-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_hive-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d2625806374d14a2d4fa820a96c24e25882e36a8f86ebd24880a16e008488bd
MD5 73f0ee21d27d732c945efd522c3a3e88
BLAKE2b-256 a3a5f5c78920eae03f66f5f57d5af05c8b0f79232b2d3026673351932565ad94

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