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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_readers_solr-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_readers_solr-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75b0debd814bb007fbb22ae3c3816aeda5d0bcf15731b07a2b4ec300964bab94
|
|
| MD5 |
3cfa6f4dd42f11bdea1e150c3a31b0e4
|
|
| BLAKE2b-256 |
84c1bbc695332bcec847bf4cf76bf84fcd7d045eeff07ff47ca05efee69d9c61
|
File details
Details for the file llama_index_readers_solr-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_solr-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46de6c1a3f528664c93505fa8df433ca3c24bec68c8d70c33fd0b2c2c46b6b86
|
|
| MD5 |
0c9f6d3d29c65900bee22d6a5922a2f5
|
|
| BLAKE2b-256 |
b3870b33764c13b0e90a03d8cc9423481e5a6534f8b46abed0f8c4a7a516c29b
|