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.4.0.tar.gz (9.6 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.4.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgvector_rag-0.4.0.tar.gz
  • Upload date:
  • Size: 9.6 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.4.0.tar.gz
Algorithm Hash digest
SHA256 85a0829b498fc355db160555c41aac797e39c27050c4ce12ea1546adb8c21e40
MD5 f7e351aa22b1ad6fc9e08c8e414362be
BLAKE2b-256 0e9e8bc518c93d955575bf08f2732cdbb58365d0c4632ae0c0cf61f4e66a405c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgvector_rag-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10dc1f023c228e7124b0be5a69d95f73f26b6f81c77474dcae0b5a0f01d85c9a
MD5 a9cbf3dde29135207f81cc1690eac000
BLAKE2b-256 5dfb25b38bb444fdb85e62bdc65b05c667af6e4c8e3074bbd93cc2954ad6007a

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