Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 735 Bytes

DEVELOPMENT.md

File metadata and controls

32 lines (27 loc) · 735 Bytes

Setting up a Development Environment

This document details how to set up a local development environment that will allow you to contribute changes to the project.

Acquire sources and create virtualenv.

git clone https://github.com/langchain-ai/langchain-postgres
cd langchain-postgres
uv venv --python=3.13
source .venv/bin/activate

Install package in editable mode.

poetry install --with dev,test,lint

Start PostgreSQL/PGVector.

docker run --rm -it --name pgvector-container \
  -e POSTGRES_USER=langchain \
  -e POSTGRES_PASSWORD=langchain \
  -e POSTGRES_DB=langchain \
  -p 6024:5432 pgvector/pgvector:pg16 \
  postgres -c log_statement=all

Invoke test cases.

pytest -vvv