# Welcome to Corentic! (home of the RAGSAK project) We're building a modern Retrieval-Augmented Generation system using Spring Boot and Kotlin. ## What we're working on - **Spring AI integration** with Kotlin coroutines for efficient LLM interactions - **Advanced document processing** using **Docling** for PDF parsing, OCR, and chunking - **Vector search** with Qdrant for semantic document retrieval - **Graph storage** using Neo4j to model document relationships - **Spring Batch** for reliable document processing pipelines - **Comprehensive testing** from unit tests to end-to-end validation ======= ## Key Features ### 💬 Chat Interface Our system includes a fully functional chat interface that: - Uses Retrieval-Augmented Generation to provide context-aware responses - Integrates with multiple document sources - Supports conversation history and context tracking - Retrieves and displays tables as markdown for easy reading - Shows source references with page numbers and images - Displays original page images alongside retrieved content ### 📄 Document Processing Powered by **Docling**, our document processing includes: - Upload and process PDF documents - Automatic chunking and embedding generation - Metadata extraction and storage - Batch processing for large document collections - Table extraction and reconstruction from documents - Image extraction from document pages - OCR (Optical Character Recognition) for text in images - Page image generation for visual context ### 🔍 Search & Retrieval Our retrieval system provides rich, contextual results including: - **Semantic search** using vector embeddings from Qdrant - **Hybrid search** combining vector and keyword approaches - **Document relationships** modeled in Neo4j graph database - **Rich result formatting** with: - Page images showing original document context - Source references with exact page numbers - Tables extracted and displayed as clean markdown - Text snippets with proper attribution Example retrieval result: ```markdown **Source:** annual_report.pdf (Page 42) **Content:** The company achieved 25% growth in Q4 2023. **Table:** Quarterly Financial Results | Quarter | Revenue (M) | Growth | |---------|-------------|--------| | Q1 | 12.5 | 5% | | Q2 | 14.2 | 13% | | Q3 | 16.8 | 18% | | Q4 | 21.0 | 25% | **Page Image:** [View original page layout] ``` ======= ## Try it out ```bash git clone https://codeberg.org/TobJEnd/RAGSAK.git cd RAGSAK docker compose up -d ./gradlew bootRun ``` Then visit `http://localhost:8080` to access the chat interface and try: - Uploading PDF documents and seeing tables extracted as Markdown - Asking questions about your documents and getting rich responses with sources - Viewing page images alongside text results - Exploring the document relationships in the graph database ======= ## Get Involved If you're working with RAG systems, Spring Boot, or just curious about how we're putting this together, we'd love to hear your thoughts and ideas! - **Code contributions** - Help improve the core system - **Testing & feedback** - Try it out and share your experience - **Documentation** - Help make our guides better - **Feature suggestions** - What would make this more useful for you? ## Connect with Us - **Codeberg**: https://codeberg.org/TobJEnd/RAGSAK - **Chat**: Join our community chat (link coming soon) We're excited to have you here and look forward to building something great together!