Skip to content

Conversation

@praveenkk123
Copy link
Contributor

Video RAG Ollama

# Create a more specific hash for caching that includes embedding type
embedding_type_name = embedding_fn.__class__.__name__
cache_key = f"{document_url}_{source_type}_{embedding_type_name}"
source_hash = hashlib.md5(cache_key.encode()).hexdigest()

Check warning

Code scanning / Bandit

Use of insecure MD2, MD4, MD5, or SHA1 hash function. Warning

Use of insecure MD2, MD4, MD5, or SHA1 hash function.
@bjodom bjodom merged commit 266bc17 into main Dec 1, 2025
2 of 3 checks passed
@bjodom bjodom deleted the praveen_latest_patch_updates branch December 1, 2025 18:46
@bjodom
Copy link
Contributor

bjodom commented Dec 1, 2025

there are a couple of md5 hash issues? I didn't see you use it anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants