A Java-based Retrieval-Augmented Generation (RAG) application built with Spring AI to intelligently analyze financial documents. This project demonstrates how to combine AI with vector databases for efficient information retrieval and insight generation.
- RAG Implementation: Uses Retrieval-Augmented Generation to provide context-aware responses from financial documents.
- Document Ingestion: Supports storing and retrieving documents efficiently using PG Vector.
- RESTful APIs: Query documents and generate AI-powered insights via REST endpoints.
- Token & Context Management: Optimized handling for cost-effective AI processing.
- Scalable Design: Easily extendable for additional document types or AI features.
- Java 17+
- Spring Boot & Spring AI
- PostgreSQL with PG Vector
- RESTful API
- Maven/Gradle (build tool)
- Clone the repository
git clone https://github.com/danvega/java-rag.git cd java-rag