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/picomatch/lib/utils.js from thilakx/Bankoflibreo: direct link, hf CLI and curl.
- Browser
- Download file 1.99 kB
-
https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/node_modules/picomatch/lib/utils.js
- Command line
-
hf download hf://thilakx/Bankoflibreo/frontend/node_modules/picomatch/lib/utils.js
-
curl -L -o utils.js https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/node_modules/picomatch/lib/utils.js
1.99 kB
| /*global navigator*/ | |
| ; | |
| const { | |
| REGEX_BACKSLASH, | |
| REGEX_REMOVE_BACKSLASH, | |
| REGEX_SPECIAL_CHARS, | |
| REGEX_SPECIAL_CHARS_GLOBAL | |
| } = require('./constants'); | |
| exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); | |
| exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str); | |
| exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str); | |
| exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1'); | |
| exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/'); | |
| exports.isWindows = () => { | |
| if (typeof navigator !== 'undefined' && navigator.platform) { | |
| const platform = navigator.platform.toLowerCase(); | |
| return platform === 'win32' || platform === 'windows'; | |
| } | |
| if (typeof process !== 'undefined' && process.platform) { | |
| return process.platform === 'win32'; | |
| } | |
| return false; | |
| }; | |
| exports.removeBackslashes = str => { | |
| return str.replace(REGEX_REMOVE_BACKSLASH, match => { | |
| return match === '\\' ? '' : match; | |
| }); | |
| }; | |
| exports.escapeLast = (input, char, lastIdx) => { | |
| const idx = input.lastIndexOf(char, lastIdx); | |
| if (idx === -1) return input; | |
| if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1); | |
| return `${input.slice(0, idx)}\\${input.slice(idx)}`; | |
| }; | |
| exports.removePrefix = (input, state = {}) => { | |
| let output = input; | |
| if (output.startsWith('./')) { | |
| output = output.slice(2); | |
| state.prefix = './'; | |
| } | |
| return output; | |
| }; | |
| exports.wrapOutput = (input, state = {}, options = {}) => { | |
| const prepend = options.contains ? '' : '^'; | |
| const append = options.contains ? '' : '$'; | |
| let output = `${prepend}(?:${input})${append}`; | |
| if (state.negated === true) { | |
| output = `(?:^(?!${output}).*$)`; | |
| } | |
| return output; | |
| }; | |
| exports.basename = (path, { windows } = {}) => { | |
| const segs = path.split(windows ? /[\\/]/ : '/'); | |
| const last = segs[segs.length - 1]; | |
| if (last === '') { | |
| return segs[segs.length - 2]; | |
| } | |
| return last; | |
| }; | |