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: 1,101 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 41 42 43 44 | const API_BASE = (import.meta.env.VITE_API_BASE_URL || "").replace(/\/$/, "") + "/api";
export async function checkHealth() {
const res = await fetch(`${API_BASE}/health`);
return res.json();
}
export async function fetchDocuments() {
const res = await fetch(`${API_BASE}/documents`);
return res.json();
}
export async function uploadFiles(formData) {
const res = await fetch(`${API_BASE}/upload`, {
method: "POST",
body: formData,
});
return res.json();
}
export async function ingestKaggle() {
const res = await fetch(`${API_BASE}/ingest-kaggle`, {
method: "POST",
});
return res.json();
}
export async function queryRAG(query, topK = 5, apiKey = "") {
const res = await fetch(`${API_BASE}/query`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ query, top_k: topK, api_key: apiKey }),
});
return res.json();
}
export async function deleteDocument(filename) {
const res = await fetch(
`${API_BASE}/documents/${encodeURIComponent(filename)}`,
{ method: "DELETE" }
);
return res.json();
}
|