zilliztech / GPTCache

Semantic cache for LLMs. Fully integrated with LangChain and llama_index.
https://gptcache.readthedocs.io
MIT License
7.2k stars 502 forks source link

Add the Time Evaluation #423

Closed SimFG closed 1 year ago

sre-ci-robot commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SimFG

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/zilliztech/GPTCache/blob/dev/OWNERS)~~ [SimFG] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
codecov[bot] commented 1 year ago

Codecov Report

Merging #423 (1548f7f) into dev (e8733b1) will decrease coverage by 0.01%. The diff coverage is 95.55%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/zilliztech/GPTCache/pull/423/graphs/tree.svg?width=650&height=150&src=pr&token=E30WxqBeJJ&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech)](https://app.codecov.io/gh/zilliztech/GPTCache/pull/423?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech) ```diff @@ Coverage Diff @@ ## dev #423 +/- ## ========================================== - Coverage 94.23% 94.23% -0.01% ========================================== Files 87 88 +1 Lines 3105 3139 +34 ========================================== + Hits 2926 2958 +32 - Misses 179 181 +2 ``` | [Impacted Files](https://app.codecov.io/gh/zilliztech/GPTCache/pull/423?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech) | Coverage Δ | | |---|---|---| | [gptcache/adapter/api.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/423?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvYWRhcHRlci9hcGkucHk=) | `97.81% <50.00%> (-0.71%)` | :arrow_down: | | [gptcache/similarity\_evaluation/time.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/423?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvc2ltaWxhcml0eV9ldmFsdWF0aW9uL3RpbWUucHk=) | `95.00% <95.00%> (ø)` | | | [gptcache/adapter/adapter.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/423?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvYWRhcHRlci9hZGFwdGVyLnB5) | `99.02% <100.00%> (ø)` | | | [gptcache/manager/scalar\_data/base.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/423?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvbWFuYWdlci9zY2FsYXJfZGF0YS9iYXNlLnB5) | `87.91% <100.00%> (+0.70%)` | :arrow_up: | | [gptcache/manager/scalar\_data/sql\_storage.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/423?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvbWFuYWdlci9zY2FsYXJfZGF0YS9zcWxfc3RvcmFnZS5weQ==) | `98.75% <100.00%> (+0.02%)` | :arrow_up: | | [gptcache/similarity\_evaluation/\_\_init\_\_.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/423?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvc2ltaWxhcml0eV9ldmFsdWF0aW9uL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | |