add-postgres-native-vector-retrieval-to-agent-and-rag-workflows-

Solid

Store embeddings beside application data in Postgres, create vector indexes, and query nearest neighbors for semantic search, RAG, recommendations, or agent memory retrieval.

AI & Automation 19 stars 14 forks Updated today MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
43
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
86
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Add Postgres-native vector retrieval to agent and RAG workflows with pgvector Store embeddings beside application data in Postgres, create vector indexes, and query nearest neighbors for semantic search, RAG, recommendations, or agent memory retrieval. ## Prerequisites Postgres 13+, pgvector extension, SQL access to the target database, embeddings from the agent or RAG pipeline, and application code that can query Postgres ## Installation Use the upstream install or setup path that matches your environment: - git clone --branch v0.8.2 https://github.com/pgvector/pgvector.git - make - make install # may need sudo - Then re-run the installation instructions (run make clean before make if needed). If sudo is needed for make install, use: Requirements and caveats from upstream: - You can also install it with [Docker](#docker), [Homebrew](#homebrew), [PGXN](#pgxn), [APT](#apt), [Yum](#yum), [pkg](#pkg), [APK](#apk), or [conda-forge](#conda-forge), and it comes preinstalled with [Postgres.app](#... - You can also install it with [Docker](#docker) or [conda-forge](#conda-forge). - Or load vectors in bulk using COPY ([example](https://github.com/pgvector/pgvector-python/blob/master/examples/loading/example.py)) Basic usage or getting-started notes: - Compile and install the extension (supports Postgres 13+) - cd /tmp - cd pgvector - Source: https://github.com/pgvector/pgvector - Extracted from upstream docs: https://raw.githubusercontent.com/pgvector/pgvector/HEAD/README.md...

Details

Author
agentskillexchange
Repository
agentskillexchange/skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category