Skip to main content

llama-index readers solr integration

Project description

LlamaIndex Readers Integration: Solr

Overview

Solr Reader retrieves documents through an existing Solr index. These documents can then be used in a downstream LlamaIndex data structure.

Installation

You can install Solr Reader via pip:

pip install llama-index-readers-solr

Usage

from llama_index.readers.solr import SolrReader

# Initialize SolrReader with the Solr URL. The Solr URL should include the path
# to the core (if single node) or collection (if Solr Cloud).
reader = SolrReader(endpoint="<Endpoint with full solr path>")

# Load data from Solr index
documents = reader.load_data(
    query={"q": "*:*", "rows": 10},  # Solr query parameters
    field="content_t",  # Only results with populated values in this field will be returned
    metadata_fields=["title_t", "category_s"],
)

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.

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_solr-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_solr-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_solr-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_solr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 75b0debd814bb007fbb22ae3c3816aeda5d0bcf15731b07a2b4ec300964bab94
MD5 3cfa6f4dd42f11bdea1e150c3a31b0e4
BLAKE2b-256 84c1bbc695332bcec847bf4cf76bf84fcd7d045eeff07ff47ca05efee69d9c61

See more details on using hashes here.

File details

Details for the file llama_index_readers_solr-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_solr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46de6c1a3f528664c93505fa8df433ca3c24bec68c8d70c33fd0b2c2c46b6b86
MD5 0c9f6d3d29c65900bee22d6a5922a2f5
BLAKE2b-256 b3870b33764c13b0e90a03d8cc9423481e5a6534f8b46abed0f8c4a7a516c29b

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