Commit Graph
7 Commits
Author SHA1 Message Date
bendtherules 9bf174ddc0 refactor(verify-db): top‑5 largest document - consider all chunks
- Replace per‑chunk sorting with aggregation of total size per section.
- Compute total characters and chunk count for each document.
- Sort sections by total size and display the top five, including part count when applicable.
2026-04-04 12:40:11 +05:30
bendtherules 7395effb4b feat: add verify-db script to package.json 2026-04-04 12:33:12 +05:30
bendtherules ff1c97af44 fix(agent-tools, setup): standardize metadata keys to lowercase and update HTML ingestion
- Renamed `partIndex`/`totalParts` to `partindex`/`totalparts` in `section_retriever.ts`, `spec_retriever.ts`, and document creation logic.
- Adjusted sorting logic to use the new `partindex` field.
- Updated metadata handling and string interpolation to reference the lowercase keys.
- Fixed import path for `HTMLTextSplitter` and moved the file to `setup/textsplitters/HtmlTextSplitter.ts`.
- Added HTML preprocessing utilities (`addNewlinesAfterBlocks`, `convertTablesToMarkdown`) in ingestion workflow.
- Integrated table-to‑markdown conversion and newline insertion to improve text splitting and document structure.
2026-04-04 12:33:05 +05:30
bendtherules 09f4f929ae Rename snake cased files to HTMLTextSplitter 2026-04-03 13:30:40 +05:30
bendtherules b3c9ed6dfd test(textsplitters): add more tests
- Verify that `splitDocuments` correctly prepends the provided `chunkHeader` to each chunk.
- Ensure `splitDocuments` returns an empty array when the source HTML yields no chunks.
2026-04-03 13:20:09 +05:30
bendtherules ec5669dcd7 feat: Impl HtmlTextSplitter 2026-04-03 11:04:40 +05:30
bendtherules b3381508c3 feat(test): add manual spec retriever test script
Introduce a new manual test file `test/manual/test-spec-retriever.ts` that demonstrates how to use the `spec_retriever` agent tool with a query. The script loads embeddings, connects to the LanceDB storage, creates the tool, executes it, and prints the result. This provides a runnable example for developers.
2026-04-01 18:31:42 +05:30