haive.core.engine.retriever.providers.ArxivRetrieverConfigΒΆ
Arxiv Retriever implementation for the Haive framework.
from typing import Any This module provides a configuration class for the Arxiv retriever, which retrieves academic papers from the arXiv preprint repository.
The ArxivRetriever works by: 1. Taking a search query for academic papers 2. Searching the arXiv API for matching papers 3. Returning paper abstracts and metadata as documents
This retriever is particularly useful when: - Working with academic or research content - Need access to the latest preprint papers - Building research-focused applications - Combining with other retrievers in academic contexts
The implementation integrates with LangChainβs ArxivRetriever while providing a consistent Haive configuration interface.
ClassesΒΆ
Configuration for Arxiv retriever in the Haive framework. |
Module ContentsΒΆ
- class haive.core.engine.retriever.providers.ArxivRetrieverConfig.ArxivRetrieverConfig[source]ΒΆ
Bases:
haive.core.engine.retriever.retriever.BaseRetrieverConfig
Configuration for Arxiv retriever in the Haive framework.
This retriever searches the arXiv preprint repository for academic papers matching the query and returns their abstracts and metadata as documents.
- retriever_typeΒΆ
The type of retriever (always ARXIV).
- Type:
Examples
>>> from haive.core.engine.retriever import ArxivRetrieverConfig >>> >>> # Create the arxiv retriever config >>> config = ArxivRetrieverConfig( ... name="arxiv_retriever", ... top_k_results=5, ... load_max_docs=50 ... ) >>> >>> # Instantiate and use the retriever >>> retriever = config.instantiate() >>> docs = retriever.get_relevant_documents("machine learning transformers")
- instantiate()[source]ΒΆ
Create an Arxiv retriever from this configuration.
- Returns:
Instantiated retriever ready for document retrieval.
- Return type:
ArxivRetriever
- Raises:
ImportError β If required packages are not available.