zilliztech / GPTCache

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

Fix the wrong search result of the pgvector #514

Closed SimFG closed 1 year ago

SimFG commented 1 year ago

issue: #511

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 #514 (84e9a45) into dev (8f7d36a) will increase coverage by 0.00%. The diff coverage is 100.00%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/zilliztech/GPTCache/pull/514/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/514?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech) ```diff @@ Coverage Diff @@ ## dev #514 +/- ## ======================================= Coverage 94.05% 94.05% ======================================= Files 94 94 Lines 3919 3920 +1 ======================================= + Hits 3686 3687 +1 Misses 233 233 ``` | [Files Changed](https://app.codecov.io/gh/zilliztech/GPTCache/pull/514?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech) | Coverage Δ | | |---|---|---| | [gptcache/\_\_init\_\_.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/514?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvX19pbml0X18ucHk=) | `100.00% <100.00%> (ø)` | | | [gptcache/manager/vector\_data/pgvector.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/514?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvbWFuYWdlci92ZWN0b3JfZGF0YS9wZ3ZlY3Rvci5weQ==) | `98.79% <100.00%> (+0.01%)` | :arrow_up: |