Retrieval
R2R’s Retrieval system provides advanced search and generation capabilities powered by vector search, knowledge graphs, and large language models. The system offers multiple ways to interact with your data:
- Direct semantic search across documents and chunks
- Retrieval-Augmented Generation (RAG) for AI-powered answers
- Conversational RAG agents for complex queries
- Raw LLM completions for flexible text generation
Core Features
Vector Search
- Semantic similarity matching using document/chunk embeddings
- Hybrid search combining vector and keyword approaches
- Complex filtering with Postgres-style operators
- Configurable search limits and thresholds
Knowledge Graph Search
- Entity and relationship-based retrieval
- Multi-hop traversal for connected information
- Local and global search strategies
- Community-aware knowledge structure
RAG Generation
- Context-aware responses using retrieved content
- Customizable generation parameters
- Source attribution and citations
- Streaming support for real-time responses
- Web search integration for up-to-date information
Deep Research Agent
- Multi-turn conversational capabilities
- Complex query decomposition
- Context maintenance across interactions
- Branch management for conversation trees
- Web search integration for external knowledge
Available Endpoints
Search Settings
Vector Search Settings
Generation Configuration
Key Concepts
Search
The search endpoint provides direct access to R2R’s retrieval capabilities, allowing you to find relevant content using semantic similarity and knowledge graph relationships. Results can be filtered using complex queries and sorted by relevance.
RAG
RAG combines retrieval with language model generation to produce informative responses grounded in your content. The system retrieves relevant context from your documents and can optionally integrate web search results to provide up-to-date information, generating accurate, sourced answers to queries.
Agent
The agent provides a conversational interface for complex information retrieval. It can maintain context across multiple interactions, break down complex queries, and provide detailed responses with citations to source material. It can also leverage web search to incorporate external knowledge when needed.
Completion
Direct access to language model generation capabilities, useful for tasks that don’t require retrieval from your content. Supports both single-turn and multi-turn conversations.
Filter Operations
Supported operators for content filtering:
eq
: Equalsneq
: Not equalsgt
: Greater thangte
: Greater than or equallt
: Less thanlte
: Less than or equallike
: Pattern matchingilike
: Case-insensitive pattern matchingin
: In listnin
: Not in list
Example:
Common Use Cases
-
Research and Analysis
- Literature review
- Document summarization
- Relationship discovery
- Cross-reference verification
- Integration with web search for comprehensive research
-
Question Answering
- Technical support
- Educational assistance
- Policy compliance
- Data exploration
- Real-time information access via web search
-
Content Generation
- Report writing
- Documentation creation
- Content summarization
- Knowledge synthesis
- Fact-checking with web search
-
Conversational Applications
- Interactive chatbots
- Virtual assistants
- Educational tutors
- Research aids with web search capabilities