Korvus is an open-source SDK designed to streamline the entire Retrieval-Augmented Generation (RAG) pipeline by executing it within a single PostgreSQL database query. It targets developers seeking to simplify complex RAG architectures, reduce latency, and leverage the power and scalability of PostgreSQL for applications requiring efficient, customizable search and generation.
How It Works
Korvus leverages the pgml
and pgvector
PostgreSQL extensions to encapsulate RAG operations, including embedding generation, vector search, reranking, and text generation, directly within the database. This approach eliminates the need for external API calls and data movement, consolidating the entire pipeline into a single, optimized SQL query for enhanced performance and simplified infrastructure.
Quick Start & Requirements
pip install korvus
pgml
and pgvector
extensions installed. Options include self-hosting or using the managed PostgresML Cloud service.KORVUS_DATABASE_URL
environment variable.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is built upon PostgreSQL extensions, requiring specific database setup. While the SDK abstracts SQL complexity, advanced customization may necessitate SQL expertise.
6 months ago
1 day