Text Generation
sentence-transformers
English
rag
retrieval-augmented-generation
fastapi
react
chromadb
banking
document-intelligence
vector-search
Instructions to use thilakx/Bankoflibreo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use thilakx/Bankoflibreo with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("thilakx/Bankoflibreo") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Download frontend/node_modules/tailwind-merge/src/lib/lru-cache.ts from thilakx/Bankoflibreo: direct link, hf CLI and curl.
- Browser
- Download file 1.61 kB
-
https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/node_modules/tailwind-merge/src/lib/lru-cache.ts
- Command line
-
hf download hf://thilakx/Bankoflibreo/frontend/node_modules/tailwind-merge/src/lib/lru-cache.ts
-
curl -L -o lru-cache.ts https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/node_modules/tailwind-merge/src/lib/lru-cache.ts
1.61 kB
| // Export is needed because TypeScript complains about an error otherwise: | |
| // Error: …/tailwind-merge/src/config-utils.ts(8,17): semantic error TS4058: Return type of exported function has or is using name 'LruCache' from external module "…/tailwind-merge/src/lru-cache" but cannot be named. | |
| export interface LruCache<Key extends string, Value> { | |
| get(key: Key): Value | undefined | |
| set(key: Key, value: Value): void | |
| } | |
| // LRU cache implementation using plain objects for simplicity | |
| export const createLruCache = <Key extends string, Value>( | |
| maxCacheSize: number, | |
| ): LruCache<Key, Value> => { | |
| if (maxCacheSize < 1) { | |
| return { | |
| get: () => undefined, | |
| set: () => {}, | |
| } | |
| } | |
| let cacheSize = 0 | |
| let cache: Record<Key, Value> = Object.create(null) | |
| let previousCache: Record<Key, Value> = Object.create(null) | |
| const update = (key: Key, value: Value) => { | |
| cache[key] = value | |
| cacheSize++ | |
| if (cacheSize > maxCacheSize) { | |
| cacheSize = 0 | |
| previousCache = cache | |
| cache = Object.create(null) | |
| } | |
| } | |
| return { | |
| get(key) { | |
| let value = cache[key] | |
| if (value !== undefined) { | |
| return value | |
| } | |
| if ((value = previousCache[key]) !== undefined) { | |
| update(key, value) | |
| return value | |
| } | |
| }, | |
| set(key, value) { | |
| if (key in cache) { | |
| cache[key] = value | |
| } else { | |
| update(key, value) | |
| } | |
| }, | |
| } | |
| } | |