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.2.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.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_readers_solr-0.2.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_readers_solr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 41e56eeaf87fa89145e69df2170e2b7bab9e3db7077bed2b7a3abf6d7240be59
MD5 ca40890a4230393b8486936b63bafef1
BLAKE2b-256 8c701ee44468a4064700ec9b7b2f254b01be42a54673d1430f199e3485098c5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_readers_solr-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_readers_solr-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53282ce371eed77171e60bff38f1ffeb96d1b2a37a9b2aeb0f5e40f2f9f246f7
MD5 db190986b9b48c90f1c0f8245eecf63d
BLAKE2b-256 ad2de897759416b3c1c089960cd9d19e93802db627b5cfef4541cf8dba4333e8

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