Skip to content

Commit

Permalink
removed LRU from the docstring, will be implemented later
Browse files Browse the repository at this point in the history
  • Loading branch information
SHUBHAGYTA24 committed May 29, 2024
1 parent a52eb1a commit 2b349ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebooks/en/semantic_cache_chroma_vector_database.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@
"Looking at the structure of the cache, the implementation of FIFO seemed straightforward. Whenever a new question-answer pair is added to the cache, it's appended to the end of the lists. Thus, the oldest (first-in) items are at the front of the lists. When the cache reaches its maximum size and you need to evict an item, you remove (pop) the first item from each list. This is the FIFO eviction policy. \n",
"\n",
"\n",
"However, for LRU (Least-Recently-Used), the implementation is more complex because this policy requires knowledge of when each item in the cache was last accessed. \n"
"Another eviction policy is the Least Recently Used (LRU) policy, which is more complex because it requires knowledge of when each item in the cache was last accessed. However, this policy is not yet available and will be implemented later.\n"
]
},
{
Expand Down Expand Up @@ -924,7 +924,7 @@
" thresold (float): The threshold for the Euclidean distance to determine if a question is similar.\n",
" max_response (int): The maximum number of responses the cache can store.\n",
" eviction_policy (str): The policy for evicting items from the cache. \n",
" This can be 'LRU' (Least Recently Used) or 'FIFO' (First In First Out).\n",
" This can be any policy, but 'FIFO' (First In First Out) has been implemented for now.\n",
" If None, no eviction policy will be applied.\n",
" \"\"\"\n",
" \n",
Expand Down

0 comments on commit 2b349ac

Please sign in to comment.