Skip to main content

A library for interfacing with pg_vector for RAG

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

pgvector-rag

A simple library for working with RAG documents using pg_vector in PostgreSQL.

Documents will pass through an optimization stage where the content is converted to markdown, submitted to OpenAI's GPT-4o, and the response is used to a more conside revision of the document for storage and tokenization.

OpenAI's text-embedding-3-small is used to generate the embeddings for the for the document and used to generate the embeddings to compare against in the database.

Schema is contained in the postgres directory.

Install with pip install -e ..

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgvector_rag-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file pgvector_rag-0.1.0.tar.gz.

File metadata

  • Download URL: pgvector_rag-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for pgvector_rag-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fb37451b4bbe69acfe72d0615a6fbdb136328200163598a605b527cc384a4311
MD5 9844c8d429adf6dc5231ab681a583406
BLAKE2b-256 5568a7ae938ebbd8f6a8eeed348d7665cb91bfcbc9844f63fdef456c50f607e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page