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.1.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.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_arango_db-0.4.1.tar.gz
Algorithm Hash digest
SHA256 d5606a0538f8f09e3a316116aad596e90944691e83526c98ec5cdcc719e8c560
MD5 11e9ae37addf914f3600f3aa5410f69b
BLAKE2b-256 3590c7cb3e2d720583dd9d326b437b38f5bfaf2aec3ee8c6b10946b3776011ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_arango_db-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e60c32e3ee589877f8687f817e294e3b89b6f40260552d5f25b383d9f3d827b1
MD5 fe577ae85a37cc6352b28398e0c1358e
BLAKE2b-256 39f17cf7ff25747f24acbb2a1dc0a29195a7c9eefed1500cfc0f1214e62609e1

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