Skip to content

Commit

Permalink
Update the version to 0.1.32
Browse files Browse the repository at this point in the history
Signed-off-by: SimFG <[email protected]>
  • Loading branch information
SimFG committed Jun 15, 2023
1 parent 88b02e1 commit c0c626b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/release_note.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ To read the following content, you need to understand the basic use of GPTCache,
- [Readme doc](https://github.com/zilliztech/GPTCache)
- [Usage doc](https://github.com/zilliztech/GPTCache/blob/main/docs/usage.md)

## v0.1.32 (2023.6.15)

1. Support the redis as vector store

```python
from gptcache.manager import VectorBase

vector_base = VectorBase("redis", dimension=10)
```

2. Fix the context len config bug

## v0.1.31 (2023.6.14)

1. To improve the precision of cache hits, two similarity evaluation methods were added
Expand Down
2 changes: 1 addition & 1 deletion gptcache/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""gptcache version"""
__version__ = "0.1.31"
__version__ = "0.1.32"

from gptcache.config import Config
from gptcache.core import Cache
Expand Down
7 changes: 7 additions & 0 deletions gptcache/manager/vector_data/redis_vectorstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ class RedisVectorStore(VectorBase):
:type collection_name: str
:param top_k: the number of the vectors results to return, defaults to 1.
:type top_k: int
Example:
.. code-block:: python
from gptcache.manager import VectorBase
vector_base = VectorBase("redis", dimension=10)
"""
def __init__(
self,
Expand Down

0 comments on commit c0c626b

Please sign in to comment.