Fix text_context_radius references

This commit is contained in:
Yiorgis Gozadinos 2025-12-09 17:42:18 +02:00
parent 52acdcb56a
commit 9e16e8dc98
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -61,7 +61,7 @@ Press `c` while viewing a chunk to open the context expansion modal:
- Shows the expanded context that would be provided to the QA agent
- Type-aware expansion: tables, code blocks, and lists expand to their complete structures
- Text content expands based on `text_context_radius` setting
- Text content expands based on `search.context_radius` setting
- Includes metadata like source document, content type, and relevance score
- Press `Esc` to close the modal

View file

@ -329,9 +329,9 @@ for result in expanded_results:
Context expansion uses your configuration settings:
- **text_context_radius**: For text content (paragraphs), includes N chunks before and after
- **max_context_items**: Limits how many document items can be included
- **max_context_chars**: Hard limit on total characters
- **search.context_radius**: For text content (paragraphs), includes N DocItems before and after
- **search.max_context_items**: Limits how many document items can be included
- **search.max_context_chars**: Hard limit on total characters
**Type-aware expansion**: Structural content (tables, code blocks, lists) automatically expands to include the complete structure, regardless of how it was split during chunking.

View file

@ -391,7 +391,7 @@ async def test_search_result_get_primary_label():
@pytest.mark.asyncio
async def test_expand_context_radius_zero(temp_db_path):
"""Test expand_context with radius 0 returns original results."""
# Default config has text_context_radius=0
# Default config has context_radius=0
async with HaikuRAG(temp_db_path, create=True) as client:
doc = await client.create_document(content="Simple test content")
assert doc.id is not None