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
File size: 986 Bytes
342595c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | export function escapeHtml(str) {
if (!str) return "";
return str
.replace(/&/g, "&")
.replace(/</g, "<")
.replace(/>/g, ">");
}
export function formatMarkdown(str) {
if (!str) return "";
return str
.replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>")
.replace(
/```text\n([\s\S]*?)\n```/g,
"<pre class='bg-surface-container-low p-3 rounded-lg font-mono text-xs my-2 overflow-x-auto border border-outline-variant/30'>$1</pre>"
)
.replace(/\n\n/g, "<br/><br/>")
.replace(/\n- /g, "<br/>• ");
}
let sendAudio = null;
export function playSendSound(isMuted = false) {
if (isMuted) return;
try {
if (!sendAudio) {
sendAudio = new Audio("/sounds/send.mp3");
} else {
sendAudio.currentTime = 0;
}
sendAudio.volume = 0.7;
sendAudio.play().catch((err) => {
console.warn("Audio playback failed:", err);
});
} catch (err) {
console.warn("Audio initialization error:", err);
}
}
|