Linted and Added Pytests and Fixed Existing Pytests
Changes to the code meant we needed to change some pytests. New pytests added for Conversation splitter method. Also fixed a bug in cumulative_sim.py where we weren't limiting curr_split_docs to only latter docs after a split.
Showing
- semantic_router/encoders/cohere.py 10 additions, 4 deletionssemantic_router/encoders/cohere.py
- semantic_router/schema.py 1 addition, 1 deletionsemantic_router/schema.py
- semantic_router/splitters/base.py 1 addition, 0 deletionssemantic_router/splitters/base.py
- semantic_router/splitters/consecutive_sim.py 10 additions, 7 deletionssemantic_router/splitters/consecutive_sim.py
- semantic_router/splitters/cumulative_sim.py 15 additions, 11 deletionssemantic_router/splitters/cumulative_sim.py
- semantic_router/text.py 30 additions, 20 deletionssemantic_router/text.py
- tests/unit/test_splitters.py 128 additions, 33 deletionstests/unit/test_splitters.py
Loading
Please register or sign in to comment