SLURP: Add comprehensive LightRAG query parameter support #14
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Request: Enhanced RAG Query Parameter Support
Current State
SLURP currently only configures basic RAG integration parameters:
RAGEndpoint: URL to RAG serviceRAGTimeout: Request timeout durationSee
IntelligenceConfiginpkg/slurp/slurp.go:209-231Problem
SLURP cannot leverage the full capabilities of LightRAG's query API. It uses only default parameters, which limits:
Requested Enhancement
Add comprehensive support for LightRAG query parameters:
1. Response Format Control
response_type: Control output format (e.g., "Multiple Paragraphs", "Single Paragraph", "Bullet Points")2. Knowledge Graph Retrieval
top_k: Number of KG entities/relationships to retrieve (default: 60)3. Chunk Retrieval
chunk_top_k: Number of text chunks to retrieve (default: 10)4. Token Budget Management
max_entity_tokens: Maximum tokens for entity contextmax_relation_tokens: Maximum tokens for relationship contextmax_token_for_text_unit: Maximum tokens per text fragmentmax_token_for_local_context: Local context token limitmax_token_for_global_context: Global context token limit5. Reranking Control
enable_rerank: Toggle reranking for result qualitymin_rerank_score: Minimum score threshold for inclusion6. Query Modes
mode: Search strategy ("mix", "local", "global", "hybrid", "naive", "semantic", "keyword")7. Output Control
only_need_context: Return raw context without LLM generationonly_need_prompt: Return generated prompt without execution8. Conversation History
history_turns: Number of conversation turns to includeProposed Implementation
Option 1: Extend IntelligenceConfig
Option 2: Per-Query Override
Add optional parameters to
GenerateContext:Benefits
Acceptance Criteria
Related Components
pkg/slurp/slurp.go- Main configurationpkg/slurp/intelligence/- Context generation (when implemented)Priority
Medium-High - This enables SLURP to fully leverage RAG capabilities and provides critical control over context generation quality and cost.
Labels
bzzz-task- Task coordinationenhancement- New featureslurp- SLURP subsystemrag- RAG integration