Skip to content

Commit 084f58c

Browse files
various documentation catches
1 parent a030bc1 commit 084f58c

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
# Introduction
3232

33-
Welcome to the Redis Vector Library (`redisvl`) – the ultimate Python client designed for AI applications harnessing the power of [Redis](https://redis.io).
33+
Welcome to the Redis Vector Library – the ultimate Python client designed for AI applications harnessing the power of [Redis](https://redis.io).
3434

3535
`redisvl` is your go-to tool for:
3636

redisvl/extensions/llmcache/base.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ def store(
5454
metadata."""
5555
raise NotImplementedError
5656

57-
def hash_input(self, prompt: str):
58-
"""Hashes the input using SHA256."""
57+
def hash_input(self, prompt: str) -> str:
58+
"""Hashes the input prompt using SHA256.
59+
60+
Args:
61+
prompt (str): Input string to be hashed.
62+
63+
Returns:
64+
str: Hashed string.
65+
"""
5966
return hashify(prompt)

redisvl/extensions/llmcache/semantic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def drop(
200200
201201
Args:
202202
ids (Optional[str]): The document ID or IDs to remove from the cache.
203-
keys (Optional[str]):
203+
keys (Optional[str]): The Redis keys to remove from the cache.
204204
"""
205205
if ids is not None:
206206
self._index.drop_keys([self._index.key(id) for id in ids])

0 commit comments

Comments
 (0)