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/enhanced-resolve/lib/util/memoize.js from thilakx/Bankoflibreo: direct link, hf CLI and curl.
- Browser
- Download file 711 Bytes
-
https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/node_modules/enhanced-resolve/lib/util/memoize.js
- Command line
-
hf download hf://thilakx/Bankoflibreo/frontend/node_modules/enhanced-resolve/lib/util/memoize.js
-
curl -L -o memoize.js https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/node_modules/enhanced-resolve/lib/util/memoize.js
711 Bytes
| /* | |
| MIT License http://www.opensource.org/licenses/mit-license.php | |
| Author Tobias Koppers @sokra | |
| */ | |
| ; | |
| /** | |
| * @template T | |
| * @typedef {() => T} FunctionReturning | |
| */ | |
| /** | |
| * @template T | |
| * @param {FunctionReturning<T>} fn memorized function | |
| * @returns {FunctionReturning<T>} new function | |
| */ | |
| const memoize = (fn) => { | |
| let cache = false; | |
| /** @type {T | undefined} */ | |
| let result; | |
| return () => { | |
| if (cache) { | |
| return /** @type {T} */ (result); | |
| } | |
| result = fn(); | |
| cache = true; | |
| // Allow to clean up memory for fn | |
| // and all dependent resources | |
| /** @type {FunctionReturning<T> | undefined} */ | |
| (fn) = undefined; | |
| return /** @type {T} */ (result); | |
| }; | |
| }; | |
| module.exports = memoize; | |