solr-pdf-indexing

Index PDF documents into SolrCloud with full-text, metadata, and vector embeddings.

1|Updated Jul 16, 2023
One-click install
npx skills add https://github.com/jmservera/aithena --skill solr-pdf-indexing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solr-pdf-indexing
Source: https://github.com/jmservera/aithena/tree/main/.squad/skills/solr-pdf-indexing
Command: npx skills add https://github.com/jmservera/aithena --skill solr-pdf-indexing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of efficiently indexing PDF documents into SolrCloud for both traditional full-text search and advanced semantic search capabilities.

Core Features & Use Cases

  • Full-Text Indexing: Leverages Solr's Tika integration to extract text and metadata from PDFs.
  • Metadata Extraction: Parses author, title, and year from filesystem paths.
  • Hybrid Search: Supports keyword, semantic (embeddings), and combined search modes.
  • Use Case: Integrate this Skill into a document management system to make a large collection of research papers searchable by keywords, author, and semantic similarity.

Quick Start

Use the solr-pdf-indexing skill to index the PDF file located at /path/to/document.pdf into Solr.

Frequently Asked Questions about solr-pdf-indexing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I index PDFs in Solr for hybrid search?

You can index PDFs in Solr for hybrid search by using Tika for full-text extraction, parsing filesystem metadata, and generating vector embeddings to support keyword, semantic, and RRF-merged queries. This requires Solr 9.x and an external embeddings service.

What is hybrid search and how does it work with PDF documents?

Hybrid search combines traditional keyword matching with semantic vector similarity to locate relevant PDF documents. It merges full-text extraction results with vector embeddings using Reciprocal Rank Fusion (RRF), enabling more accurate queries over large libraries.

Do I need an external embeddings service to enable semantic search in Solr?

Yes, you need an external embeddings service to generate vector representations for semantic search. The Skill processes PDF text and metadata extracted by Tika, but relies on this external service to produce the embeddings required for similarity queries.

Can I extract metadata like author and title from PDF filesystem paths during indexing?

Yes, the indexing process parses metadata such as author, title, and year directly from the filesystem paths. This extracted metadata is combined with the full-text content obtained through Solr's Tika integration to enrich the searchable document index.

What's the best way to search a large collection of research papers using Solr?

The best approach is to index the research papers using Tika for text extraction and an embeddings service for vector generation, allowing RRF-merged hybrid queries. This supports robust searching across keywords, authors, and semantic similarity simultaneously.

What are the limitations of using Tika and Solr for PDF indexing?

This approach requires Solr 9.x with Tika extraction enabled and a separate external embeddings service. It is designed for large PDF libraries where robust search is needed, but may not suit smaller collections due to the infrastructure overhead required.