Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Pygmales
/
hsg_rag_eea
like
1
Sleeping
App
Files
Files
Fetching metadata from the HF Docker repository...
main
hsg_rag_eea
/
src
/
cache
/
utils.py
Pygmales
updated project version
5ff514f
about 1 month ago
raw
Copy download link
history
blame
Safe
200 Bytes
import
re
def
get_cache_key
(
key:
str
, language:
str
, session_id:
str
) ->
str
:
normalized_key = re.sub(
r'[^a-z0-9]'
,
''
, key.lower())
return
f"cache:
{session_id}
:
{language}
:
{normalized_key}
"