What's new
This release focuses on improving code quality through comprehensive type hint fixes and enhanced testing infrastructure.
🔧 Fixes
-
Type Hints: Comprehensive type hint improvements across the codebase
- Binary FAISS vectorstore type hints ([e46ed4a], [ac02a65], [da864cd], [95c3705], [81b36cb], [be3f352])
- Loader function type hints ([e6fcad8], [e65abad], [b624373])
- Semantic batching type hints ([f3a5289], [dd6ad29])
- Prompt template type hints ([1b4ec86], [bc56beb])
- General type hint fixes ([d4e99fd])
-
Model Compatibility: Fixed issue where some models consider
<answer>
as implying</think>
([09684bb]) -
Langchain Integration: Fixed callable_chain compatibility by creating runnables without decorators ([0c89cac])
✨ Enhancements
- Type Checking: Replaced manual type checking with import hook system ([56b353a], [6b3ddab])
- Logging: Reduced verbosity of litellm logging ([9a4a69c])
- Search: Added duplicate check for DuckDuckGo search results ([f68c8a4])
🧪 Tests
- Added comprehensive test for DuckDuckGo search functionality ([7dbd3c2])
- Fixed existing CLI tests ([781f6d6])
📦 Version
- Bumped version from 3.3.0 to 3.3.1 ([0690df9])
Commits details since the last release
- [0690df9] by @thiswillbeyourgithub, 41 seconds ago:
bump version 3.3.0 -> 3.3.1
bumpver.toml
docs/source/conf.py
setup.py
wdoc/wdoc.py
- [7dbd3c2] by @thiswillbeyourgithub, 8 hours ago:
test: add test for DuckDuckGo search functionality
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) aider@aider.chat
tests/test_wdoc.py
- [781f6d6] by @thiswillbeyourgithub, 9 hours ago:
fix: test
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
tests/test_cli.py
- [e46ed4a] by @thiswillbeyourgithub, 14 hours ago:
fix: typehint for marginal score search
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/customs/binary_faiss_vectorstore.py
- [ac02a65] by @thiswillbeyourgithub, 18 hours ago:
fix: type hint of binary faiss
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/customs/binary_faiss_vectorstore.py
- [f68c8a4] by @thiswillbeyourgithub, 19 hours ago:
add check for duplicate ddg result
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/batch_file_loader.py
- [da864cd] by @thiswillbeyourgithub, 19 hours ago:
fix: binary faiss type hints
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/customs/binary_faiss_vectorstore.py
- [9a4a69c] by @thiswillbeyourgithub, 19 hours ago:
enh: tune down the verbosity of litellm
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/wdoc.py
- [e6fcad8] by @thiswillbeyourgithub, 19 hours ago:
fix: type hint of load_one_doc
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/loaders.py
- [e65abad] by @thiswillbeyourgithub, 20 hours ago:
Revert "fix: typehint of load_one_doc"
This reverts commit f0037b54ac5ce317442e672f12e1da266b58c5c1.
wdoc/utils/loaders.py
- [b624373] by @thiswillbeyourgithub, 20 hours ago:
fix: typehint of load_one_doc
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/loaders.py
- [95c3705] by @thiswillbeyourgithub, 20 hours ago:
fix: typehints for binary faiss
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/customs/binary_faiss_vectorstore.py
- [f3a5289] by @thiswillbeyourgithub, 20 hours ago:
fix: type hints for semantic batching
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/tasks/query.py
- [d4e99fd] by @thiswillbeyourgithub, 20 hours ago:
fix: type hints
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/wdoc.py
- [81b36cb] by @thiswillbeyourgithub, 21 hours ago:
forgot some type hint for binary faiss
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/customs/binary_faiss_vectorstore.py
- [dd6ad29] by @thiswillbeyourgithub, 21 hours ago:
fix: wrong typehint in semantic_batch
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/tasks/query.py
- [09684bb] by @thiswillbeyourgithub, 21 hours ago:
fix: some models consider than implied
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/misc.py
- [0c89cac] by @thiswillbeyourgithub, 22 hours ago:
fix: actually callable_chain does not work for langchain so we have to make runnables without decorators
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/customs/callable_runnable.py
wdoc/utils/misc.py
wdoc/utils/tasks/query.py
wdoc/wdoc.py
- [6b3ddab] by @thiswillbeyourgithub, 22 hours ago:
new: remove the ubiquitous optional_typecheck decorator
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/main.py
wdoc/utils/batch_file_loader.py
wdoc/utils/embeddings.py
wdoc/utils/interact.py
wdoc/utils/llm.py
wdoc/utils/loaders.py
wdoc/utils/logger.py
wdoc/utils/misc.py
wdoc/utils/prompts.py
wdoc/utils/retrievers.py
wdoc/utils/tasks/query.py
wdoc/utils/tasks/summarize.py
wdoc/utils/typechecker.py
wdoc/wdoc.py
- [56b353a] by @thiswillbeyourgithub, 22 hours ago:
new: neutralize manual type checking and instead use the import hook
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/init.py
wdoc/utils/customs/callable_runnable.py
wdoc/utils/misc.py
wdoc/utils/tasks/query.py
wdoc/utils/typechecker.py
wdoc/wdoc.py
- [be3f352] by @thiswillbeyourgithub, 22 hours ago:
fix: type hints in binary faiss
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/customs/binary_faiss_vectorstore.py
- [1b4ec86] by @thiswillbeyourgithub, 23 hours ago:
fix: wrong type for Prompts class
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/prompts.py
- [bc56beb] by @thiswillbeyourgithub, 23 hours ago:
add type checking to prompt template
Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com
wdoc/utils/prompts.py