Skip to main content

RAG (Retrieval-Augmented Generation) System

A Python-based RAG system that processes text files, generates embeddings, and stores them in a Postgres database with pgvector for efficient similarity search.

For detailed information, see:

Features

  • File ingestion (source code, Markdown, plain text)
  • Text chunking with configurable overlap
  • Vector embeddings via OpenAI or Hugging Face
  • Postgres + pgvector for vector storage and search
  • Project-based organization of documents

Quick Start

  1. Set up the environment:
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt
  1. Configure environment variables:
cp .env.example .env
# Edit .env with your settings:
# - Database credentials
# - OpenAI API key (if using OpenAI embeddings)
  1. Start the database:
task db:up
  1. Run the example:
task demo:example

Development

# Run tests
task test:integration

License

MIT License

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Metadata

Release files for postgres-rag 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for postgres-rag 0.1.0
File Size Uploaded Provenance Actions
postgres_rag-0.1.0.tar.gz 9.8 kB Without provenance Details for postgres_rag-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for postgres-rag 0.1.0
File Interpreter ABI Platform Actions
postgres_rag-0.1.0-py3-none-any.whl Python 3 none any Details for postgres_rag-0.1.0-py3-none-any.whl

Total release size: 22.6 kB

Release files / postgres_rag-0.1.0.tar.gz

Download URL postgres_rag-0.1.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
416768ba8a833147f5770ca338d7f26d68dab52d0d8c181c4288e1f5680edd1b
BLAKE2b-256 checksum
How to use checksums
9a556d6c14ac216e3de27db68e354991a0f3a4d1d346943ad98bfe9b267bdaa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / postgres_rag-0.1.0-py3-none-any.whl

Download URL postgres_rag-0.1.0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9061529788f51cc7c8d422f52d0c7db9dd7d5513179c9dca192af279f874d192
BLAKE2b-256 checksum
How to use checksums
56f2d5e8d334d94720e7bd24e8e14e1a1077e3bb9bdfab9675d44697775094d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Security for postgres-rag 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page