sub-query-decomposition

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

README

Sub-Query Decomposition Example

Demonstrates splitting a complex query into sub-questions using SearchBuilder.SubDecompose() to improve recall.

Run

# With mock provider (no external dependencies)
LLM_PROVIDER=mock go run .

To use real LLM/embedder providers, set LLM_PROVIDER=ollama or LLM_PROVIDER=openai with the appropriate environment variables (see examples in examples/memory/).

Documentation

Overview

@sk-task prod-issues#T3.4: Пример sub-query decomposition (AC-011)

Демонстрирует разбиение сложного запроса на под-вопросы для улучшения recall. Использует LLM-rewriter для генерации под-вопросов на основе QueryDecomposer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL