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
Built Distribution
Close
Hashes for llama_index_readers_arango_db-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7708c3b39925438be17161d5d37f3c4a28d3ce33f82c3d2354ccc28aca7d0c9d |
|
MD5 | d261be7bd56c7c167f7ffbf95f118588 |
|
BLAKE2b-256 | b276d9d1303f1755dc0a49efea5e9c8d24ffeb5e389b0006e0baad4e75fee094 |
Close
Hashes for llama_index_readers_arango_db-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fee009cb55f1fc523a2986c51699c2f8c8534c2b96967ba10334f0101ea3f2b9 |
|
MD5 | 401d178529e52ac8ab956293f6694d9e |
|
BLAKE2b-256 | f92199e16ff5bd2e54b37c73606830f99fb917f48cce9cf04c545d6238e56005 |