agentleFS
LangChainKnown publisherlangchain-ai/langchain-azure/libs/azure-postgresql/.github/copilot-instructions.md

langchain-azure / azure-postgresql

Copilot instructions147 starsChanged 3 months agoMITView on GitHub

This project integrates LangChain with Azure Database for PostgreSQL, providing seamless access to vector stores and other database functionalities such as, e.g., Entra ID authentication and DiskANN indexing algorithm, which help improve security and performance when working with large datasets. For this project, we use uv for packaging and dependency management. Similarly, we use pytest and tox to handle testing and test automation. The following commands/tools are useful for the following purposes: If there exists a .env file in the…

  • Reads credentials

The file

We split this copilot-instructions.md into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If there exists a .env file in the root directory, you can replace the uv run command with uv run --env-file .env and keep the rest the …

    line 20
  2. Distinctive:

    Follow the below guidelines when interacting with the project files:

    line 69
  3. Distinctive:

    Follow the existing code style and conventions,

    line 72
  4. Distinctive:

    Always summarize your plan and ask for confirmation before moving forward,

    line 73
  5. Distinctive:

    Ask before you want to use linters and type checkers to avoid disrupting the workflow, and,

    line 74
  6. Very specific:

    Use docstrings in sphinx convention.

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

langchain-azure-postgresql

This project integrates LangChain with Azure Database for PostgreSQL, providing seamless access to vector stores and other database functionalities such as, e.g., Entra ID authentication and DiskANN indexing algorithm, which help improve security and performance when working with large datasets.

Tooling

For this project, we use uv for packaging and dependency management. Similarly, we use pytest and tox to handle testing and test automation. The following commands/tools are useful for the following purposes:

  • Creating the development environment: uv sync --all-extras
  • Running tests: uv run tox -e py
  • Running lint checks: uv run tox -m lint
  • Running type checks: uv run tox -m type
  • Running packaging checks: uv run tox -m package

If there exists a .env file in the root directory, you can replace the uv run command with uv run --env-file .env and keep the rest the same.

Project Structure

The project has the general structure:

$ tree -L 4 -P '*.py' -P '*.toml'
.
├── pyproject.toml
├── src
│   └── langchain_azure_postgresql
│       ├── common
│       │   ├── aio
│       │   ├── _connection.py
│       │   ├── __init__.py
│       │   └── _shared.py
│       ├── __init__.py
│       └── langchain
│           ├── aio
│           ├── __init__.py
│           ├── _shared.py
│           └── _vectorstore.py
└── tests
    ├── common
    │   ├── __init__.py
    │   ├── test_connection.py
    │   └── test_shared.py
    ├── conftest.py
    ├── __init__.py
    ├── integration_tests
    │   ├── __init__.py
    │   └── test_placeholder.py
    └── langchain
        ├── conftest.py
        ├── __init__.py
        └── test_vectorstore.py

10 directories, 18 files

Specifically, the project follows the standard Python package structure, with separate directories for source code (src/) and tests (tests/), and a pyproject.toml file for all Python-/tooling-related configurations. We aim to separate the asynchronous code from the synchronous code, ensuring a clear distinction between the two, under dedicated directories, such as **/aio/*.py.

General Coding Guidelines

Follow the below guidelines when interacting with the project files:

  • Be concise,
  • Follow the existing code style and conventions,
  • Always summarize your plan and ask for confirmation before moving forward,
  • Ask before you want to use linters and type checkers to avoid disrupting the workflow, and,
  • Use docstrings in sphinx convention.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.