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 Anthropic's Sonet 3.5 to optimize the content, and the response is used to a store a conside revision of the document.

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 pgvector-rag.

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.3.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pgvector_rag-0.3.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgvector_rag-0.3.0.tar.gz
  • Upload date:
  • Size: 9.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.3.0.tar.gz
Algorithm Hash digest
SHA256 ba05b5d12e3220a53ccc63e5dd3c58f4bf8d580fa419075abf3595ae6fcebc88
MD5 1be6ad470f77b2ac38b9ae93d8470983
BLAKE2b-256 66b25e90c80d82cf65380324874eabd1ae810c3020a7d4015637f52c2c1c4f56

See more details on using hashes here.

File details

Details for the file pgvector_rag-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pgvector_rag-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for pgvector_rag-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c21da166bc36826043477a160bbfa843fc8f531e9c9b212fa15daac25460391
MD5 7bb2a8b5298699940f84e597801c5d24
BLAKE2b-256 1d26b81cff58400c2dce20e3df2edb1b8394f39a2268586edce2a6d3d0b998b4

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