llama-index readers arango db integration
Project description
LlamaIndex Readers Integration: Arango Db
This loader loads documents from ArangoDB. The user specifies a ArangoDB instance to initialize the reader. They then specify the collection name and query params to fetch the relevant docs.
Usage
Here's an example usage of the SimpleArangoDBReader.
from llama_index.core.readers import download_loader
import os
SimpleArangoDBReader = download_loader("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,
)
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
Built Distribution
Close
Hashes for llama_index_readers_arango_db-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99ba442c688f2621eb4979ee2c3f9fec2aa8904b3cb6cc25e66d5c013fbe0267 |
|
MD5 | 11ad2fc237ca8a241d2818607bdd185b |
|
BLAKE2b-256 | 683bce14da07642578472b0f8fb792fe5fdec47ef9fa0850c2a5709300fdf3ea |
Close
Hashes for llama_index_readers_arango_db-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 766ab14ee8ccf2c379c87c83c646da52b2e171cbe471326d1c6af04f852146e5 |
|
MD5 | 496fa1465bde82fe7a7debc191ed9134 |
|
BLAKE2b-256 | 8991e07731eebe3c155e9fd33e2fb7c1fd6c3ee85abd7e4ccb0c9a594991300d |