Skip to main content

llama-index readers arango db integration

Project description

LlamaIndex Readers Integration: ArangoDB

pip install llama-index-readers-arango-db

This loader loads documents from ArangoDB. The user specifies an ArangoDB instance to initialize the reader. They then specify the collection name and query parameters to fetch the relevant docs.

Usage

Here's an example usage of the SimpleArangoDBReader.

import os

from llama_index.readers.arango_db import SimpleArangoDBReader

host = "<host>"
db_name = "<db_name>"
collection_name = "<collection_name>"
# query_dict is passed into db.collection.find()
query_dict = {}
# Attribute of interests to load, by default ["text"]
field_names = ["title", "description"]
reader = SimpleArangoDBReader(host)  # or pass ArangoClient
documents = reader.load_data(
    username,
    password,
    db_name,
    collection_name,
    query_dict=query_dict,
    field_names=field_names,
)

A demo notebook is available here.

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_arango_db-0.4.0.tar.gz (4.7 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_arango_db-0.4.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_arango_db-0.4.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_arango_db-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d03506dc83200df7dde845f5c50044e8e48b0f5d39f305f96eddd51ce1394633
MD5 cfef385b96999215b93ae830ec734a97
BLAKE2b-256 6cdb6377d2c5b074f9ee9513a4b21d28def274947738b8cc3200a94a1534f9f8

See more details on using hashes here.

File details

Details for the file llama_index_readers_arango_db-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_arango_db-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 530aa55a49078a6979df99a9986badac3d0aa7994007a3df7448f07334ae3915
MD5 76c498eac83e319df4eaa3dca097b5e0
BLAKE2b-256 41c99ca1534022fe2568f88bdb5d2aabb511b077bfa1061990e7155dab85ab25

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