Skip to main content

llama-index readers couchdb integration

Project description

CouchDB Loader

pip install llama-index-readers-couchdb

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.

import os

from llama_index.readers.couchdb import 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.

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_couchdb-0.3.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_readers_couchdb-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_couchdb-0.3.0.tar.gz
Algorithm Hash digest
SHA256 74996d392439dc53e715c160a23f0e53d3747f616ed92f26a82e5e445865d401
MD5 815d7ab6b950180ca8d9bda382ed5330
BLAKE2b-256 ccb9f2b83d01820bb8292f34c634be8439c0b6699b0b6ddecccdeba0172ecedb

See more details on using hashes here.

File details

Details for the file llama_index_readers_couchdb-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_couchdb-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1aa60811220e5e0905e57ebff713ff2f7aae08c6238aec941b60d0973dccb704
MD5 227f95743fa21dae956dece4d799df81
BLAKE2b-256 acb5e58b1df48f37d5222abe79632ded8f0e4f2fc687aa2d362284722cc0cd3a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page