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
Bank of Libreo β Intelligent Banking RAG System
An enterprise-grade Retrieval-Augmented Generation (RAG) system for bank data analysis, document intelligence, and AI-powered query answering.
π₯οΈ Live Preview
The Oracle of Libreo β RAG-powered chat interface connected to ChromaDB vector store
π System Architecture & Flow
flowchart TD
subgraph Frontend["π₯οΈ Frontend (React + Vite)"]
UI["User Interface"]
APIClient["API Service Layer"]
UI --> APIClient
end
subgraph Backend["β‘ FastAPI Server"]
API["FastAPI App"]
DocProc["Document Processor"]
RAGEngine["RAG Search & Synthesis"]
end
subgraph Database["ποΈ ChromaDB Vector Store"]
Embeddings["Sentence Transformers"]
VectorDB["Chroma Vector Database"]
end
APIClient -->|"1. User Query / Upload"| API
API -->|"2. Document Ingestion"| DocProc
DocProc -->|"3. Text Chunks & Metadata"| Embeddings
Embeddings -->|"4. Index Vectors"| VectorDB
API -->|"5. Search Query"| RAGEngine
RAGEngine -->|"6. Similarity Search"| VectorDB
VectorDB -->|"7. Top-K Context"| RAGEngine
RAGEngine -->|"8. Synthesized Answer"| API
API -->|"9. JSON Response"| APIClient
β¨ Features
| Feature | Description |
|---|---|
| π Multi-Format Ingestion | PDF, CSV, Excel .xlsx, Word .docx, TXT, Markdown, JSON, HTML |
| π Semantic Vector Search | ChromaDB + Sentence Transformers for semantically accurate retrieval |
| π€ AI Answer Synthesis | Blended, paraphrased answers with cited sources |
| β‘ Auto Dataset Loading | Background ingestion of banking datasets on server startup |
| π§© Chunk Inspector | Drill down into retrieved context chunks per answer |
| π¨ Premium UI | Classical-themed chat interface with glassmorphism & dark palette |
| βοΈ Render Ready | One-click deployment to Render (backend + frontend) |
π οΈ Technology Stack
| Layer | Technology |
|---|---|
| Backend API | Python 3, FastAPI, Uvicorn |
| Vector Store | ChromaDB, Sentence Transformers |
| Document Parsing | PyPDF2, Pandas, OpenPyXL, Python-Docx |
| Frontend | React 19, Vite 8, Tailwind CSS v4 |
| Deployment | Render (Web Service + Static Site) |
π API Reference
| Method | Endpoint | Description |
|---|---|---|
GET |
/ |
Root health check |
GET |
/healthz |
Platform health monitoring |
GET |
/api/health |
Vector store health & document statistics |
GET |
/api/documents |
List all indexed documents |
POST |
/api/upload |
Upload & auto-chunk document files |
POST |
/api/query |
RAG query β synthesized answer + citations |
POST |
/api/ingest-kaggle |
Auto-download Kaggle bank dataset |
DELETE |
/api/documents/{filename} |
Remove a document from vector store |
π» Local Development
Prerequisites
- Python 3.10+
- Node.js 18+
β‘ Quick Start (One Command)
# From repo root β launches both servers in separate windows
.\start_dev.ps1
Manual Setup
Terminal 1 β Backend
cd backend
pip install -r requirements.txt
uvicorn app:app --host 127.0.0.1 --port 8000 --reload
Backend runs at
http://localhost:8000
Terminal 2 β Frontend
cd frontend
npm install
npm run dev
Frontend runs at
http://localhost:5173
Note: Vite takes ~25s on first start while bundling dependencies. Wait for the
VITE readymessage.
βοΈ Deployment Guide (Render)
π§ Backend Service (Web Service)
| Setting | Value |
|---|---|
| Environment | Python 3 |
| Root Directory | backend |
| Build Command | pip install -r requirements.txt |
| Start Command | uvicorn app:app --host 0.0.0.0 --port $PORT |
π Frontend Service (Static Site)
| Setting | Value |
|---|---|
| Root Directory | frontend |
| Build Command | npm install && npm run build |
| Publish Directory | dist |
| Environment Variable | VITE_API_BASE_URL = https://your-backend-url.onrender.com |
Built with β‘ by Bank of Librio β Banking with Strength. Built on Trust.
