llama-index readers couchdb integration
Project description
CouchDB Loader
This loader loads documents from CouchDB. The loader currently supports CouchDB 3.x using the CouchDB3 python wrapper from https://github.com/n-vlahovic/couchdb3 The user specifies a CouchDB instance to initialize the reader. They then specify the database name and query params to fetch the relevant docs.
Usage
Here's an example usage of the SimpleCouchDBReader.
from llama_index import download_loader
import os
SimpleCouchDBReader = download_loader("SimpleCouchDBReader")
host = "<host>"
port = "<port>"
db_name = "<db_name>"
# query is passed into db.find()
query_str = "{ couchdb_find_sytax_json }"
reader = SimpleCouchDBReader(host, port)
documents = reader.load_data(db_name, query=query_str)
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_couchdb-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b77bbc92defe6c8460b1646c7a9e34f982ad55610f95be6a7bd3cfddc25b045 |
|
MD5 | 3f8d65e494d71daeae0fc53eb5b5cb5c |
|
BLAKE2b-256 | ec3783d6ba8268d643468921d347db13a968dea871b209e52140af6457f95555 |
Close
Hashes for llama_index_readers_couchdb-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4f5c986de4a6d20d772e6f96240f2b48a7423d75fa2453acf2efdef258dd5be |
|
MD5 | 3d44e4784638b00aa66d8ecd8c294522 |
|
BLAKE2b-256 | 2f424b785b88d5eba52b21bbf79bdfa5b797a0578752f9cec46e313bd6273a71 |