Skip to content

refactor(python): reorder imports and improve code formatting#68

Merged
zTgx merged 6 commits intomainfrom
dev
Apr 15, 2026
Merged

refactor(python): reorder imports and improve code formatting#68
zTgx merged 6 commits intomainfrom
dev

Conversation

@zTgx
Copy link
Copy Markdown
Contributor

@zTgx zTgx commented Apr 15, 2026

Reorder import statements to follow logical grouping and update format! macro calls to use multi-line formatting for better readability.

style(rust): clean up unused imports and improve code formatting

Remove unused RefType import and reformat function calls to use multi-line syntax for better readability. Also clean up unnecessary imports in retrieval strategy module.

refactor(index): reorganize module structure

Move ReasoningIndexConfig import after other imports to maintain consistent ordering in the indexer module.

refactor(retrieval): remove unused DocumentEntry export

Remove unused DocumentEntry re-export from retrieval strategy module as it's not being used externally.

Reorder import statements to follow logical grouping and update
format! macro calls to use multi-line formatting for better
readability.

style(rust): clean up unused imports and improve code formatting

Remove unused RefType import and reformat function calls to use
multi-line syntax for better readability. Also clean up unnecessary
imports in retrieval strategy module.

refactor(index): reorganize module structure

Move ReasoningIndexConfig import after other imports to maintain
consistent ordering in the indexer module.

refactor(retrieval): remove unused DocumentEntry export

Remove unused DocumentEntry re-export from retrieval strategy
module as it's not being used externally.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vectorless Ready Ready Preview, Comment Apr 15, 2026 2:12am

- Update workspace package version from 0.1.26 to 0.1.27 in Cargo.toml
- Update Python package version from 0.1.5 to 0.1.6 in pyproject.toml
- Replace unused variables with underscore prefix to eliminate compiler
  warnings across multiple modules including workspace.rs, emitter.rs,
  executor.rs, aggregator.rs, llm_pilot.rs, reference.rs, retriever.rs,
  beam.rs, evaluate.rs, hybrid.rs, and threshold.rs

- Remove overly permissive clippy allowances in lib.rs and replace with
  specific lint configurations for better code quality

- Add SearchAlgorithm and QueryComplexity exports to main library
 interface

- Include ReasoningIndexConfig in document type exports

- These changes clean up code by addressing unused variable warnings
  while maintaining all existing functionality
- Add LlmMetricsReport with total calls, token usage, success rates,
  latency, and estimated costs
- Add PilotMetricsReport with decision accuracy, guidance calls,
  and intervention tracking
- Add RetrievalMetricsReport with query performance, cache metrics,
  and path quality statistics
- Add combined MetricsReport to aggregate all subsystem metrics
- Implement metrics hub for centralized metric collection
- Expose metrics_report() method in Python bindings
Add recursive parameter to PyIndexContext.from_dir with default value false.
When recursive=True, uses IndexContext::from_dir_recursive instead of
from_dir.

feat(rust): implement recursive directory scanning for IndexContext

Add IndexContext::from_dir_recursive method that scans directories
recursively. Refactor from_dir to use internal scan_dir helper function.
Update supported extensions to only include .md and .pdf files.

docs: add directory indexing example with CLI interface

Add new example showing how to recursively index documents in a directory
with command line arguments for recursive/non-recursive modes.
- Add new example script examples/index_directory/main.py that
  demonstrates recursive directory indexing functionality
- The example supports command-line arguments for directory path
  and recursive/non-recursive scanning options
- Add environment variable support for LLM configuration
- Implement document listing, querying, and metrics reporting
- Add __len__ and is_empty methods to PyIndexContext for better
  Python integration
- Update IndexContext repr to show number of sources
@zTgx zTgx merged commit 0014b27 into main Apr 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant