Skip to main content

llama-index readers hive integration

Project description

Hive Loader

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 import download_loader

HiveReader = download_loader("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)

This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent. See here for examples.

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.1.3.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

llama_index_readers_hive-0.1.3-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

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