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/src/api.js from thilakx/Bankoflibreo: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/src/api.js
- Command line
-
hf download hf://thilakx/Bankoflibreo/frontend/src/api.js
-
curl -L -o api.js https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/src/api.js
1.1 kB
| 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(); | |
| } | |