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.2.0.tar.gz (8.2 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.2.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgvector_rag-0.2.0.tar.gz
  • Upload date:
  • Size: 8.2 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.2.0.tar.gz
Algorithm Hash digest
SHA256 ceed01424cf08f4ac1e1098cb54aa825aa1969521dfda256e2cf138a11908b4e
MD5 9b573105c385ecf14fbb10a46ed68795
BLAKE2b-256 7545276664d16bd07ef8a621acd55f451130f3a75c969eaa5b02fcab47a252b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgvector_rag-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50a3529840d00743a94918481de3f8c379c861677af53166af9f3068d4c0be02
MD5 f28a66b9010a1e9f6db015ccb7daabf4
BLAKE2b-256 9281ec348aa270e0c8f84501c6c70b8ba8d075a7e2b72dfa6801e4ac49dd2f06

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